logout: - $Author:
QuicklinksEndUserTest/VirtualisatonInstallierenKernel - TuningNetworkDisplay / PadsBock DevicesPrinterUSB-DevicesBenutzerSWServerInstall NotesGeneral/Hints |
Collection of installation & troublshooting info related to my linux (debian/mint/ubuntu) installations Kat: Boot Virtualisation QEMU Installation i.a.
http://docs.projectblackdog.com/3rdParty/qemu/qemu-doc.html Dokumentation QEMU-Shortcutctrl-alt f (fullscreen/normalscreen)
sendkey ctrl-alt-f1 ctrl-alt-backspace
BesonderheitenNetzwerk-Tests:
Ping kommt nicht zurück (Namensauflösung aber korrekt auf erster Zeile). -> eigene QEMU Firewall o.ä.
ausgereifter Emulator für X86 und andere Prozessoren
allg. Shared memory/dev/shm ev. in FSTAB vergrössern Beschleuniger: kvm (oder kqemu)
ab kernel 2.6.20: kvm-intel / kvm-amd
Befehleqemu-img create harddisk.img 10M qemu-img create -f qcow arch.qcow 4G qemu-img convert -f qcow hda.qcow -O raw hda.raw qemu -snapshot nur Copy der Partiton, v.a. für Tests) -hda /dev/.. Diskpartiton -cdrom /dev/.. CD-Rom -L /pfad spezielles Bios / libs -user-net mit dem Host kommunizieren CD-Rom booten od. ab IsoCDROM-Device in mount feststellen
HD bootenqemu -snapshot -hda /dev/sdb (Grub, dann Start) iso booten und installieren[- Diskoperation mit gparted "live" u.a. ] sudo qemu -m 254 -hda /dev/sda -cdrom /home/pogay/Desktop/ubuntu-9.10-desktop-i386.iso -boot d & qemu -hda /Pfad/zu/hdd.img -cdrom ubuntu.iso -boot d qemu -monitor stdio -hda fedora.img -cdrom fedora_cd1.iso -boot d qemu change cdrom fedora_cd2.iso mit Kernel bootenwichtig: bei root=/, was der Kernel erkennt und die gewünschte Partiton, prinzipiell, kann das root aus busybox geladen werden.
sudo qemu -hda /dev/sdc -m 254 -kernel ./vmlinuz -initrd ./initrd.img -append "rw root=/dev/sda2" (U804)
sudo qemu -hda /dev/sdb -m 254 -kernel ./vmlinuz -initrd ./initrd.img -append "rw root=/dev/sda6"
sudo qemu -hda /dev/sdc -m 254 -kernel ./vmlinuz -initrd ./initrd.img -append "rw root=/dev/hda6" (lenny)
"QEMU-Puppy"
Diverse Versuche.... (fand das Root noch nicht)
qemu -kernel vmlinuz -append root=/dev/sdb7/ -snapshot -hda /dev/sdb7 -m 256
qemu -hda good.img -m 512 -kernel /mnt/loop/boot/vmlinuz-2.6.21.4-eeepc -append "rw root=/dev/sda1" (link)
[ok]7.10: konnte root nicht einhängen (8.04er) (Berechtigun)
On a side note you can run from the loopback device rather then the disk image file. Simply mount the disk image file 'sudo mount -o loop,offset=32256 good.img /mnt/loop' and run QEMU 'qemu -hda good.img -m 512 -kernel /mnt/loop/boot/vmlinuz-2.6.21.4-eeepc -append "rw root=/dev/sda1"'. This will bring you to the standard KDM login screen. I haven't worked out all the bugs yet but one thing you will have to do here is drop down to the terminal and set the 'user' password via passwd. Start eines virtuellen Systems Bsp: pvpm
START qemu.exe -L . -m 128 -hda harddisk -cdrom mydsl.iso -boot d -enable-audio -user-net -localtime Erstellen eines Images-# qemu-img create qemureact.img 512M
image: qemureact.img
file format: raw
NetzwerkVDE+QEMU User Mode Networking von Jim Brown VDE: Virtual Distributed Ethernet
Notizenfolgender und weiterer interssanter Artikel (E)
#!/bin/sh # # Inside the qemu VM, the following commands are required: # # ifconfig eth0 172.20.0.2 # route add default gw 172.20.0.1 # intf=$1 eth0_ipaddr=$(ifconfig eth0 | awk '/inet addr:/ {print substr($2, 6)}') sudo sh << EOT /sbin/ifconfig $intf 172.20.0.1 /sbin/route add -host 172.20.0.2 $intf /sbin/iptables -t nat -F /sbin/iptables -t nat -A POSTROUTING -j SNAT -o eth0 --to $eth0_ipaddr echo 1 > /proc/sys/net/ipv4/ip_forward EOT Dann noch dem emulierten OS sagen, dass seine IP-Nummer "172.20.0.2" ist, und das Gateway auf "172.20.0.1" setzen. busybox (Befehle) 31 December 2008 -- BusyBox 1.13.2 (stable), BusyBox 1.12.4 (stable)
http://www.busybox.net/downloads/BusyBox.html (List der Befehle)
[] Wie geht der Bootvorgang weiter? |