virtio boot

Burn

New Member
Nov 24, 2009
17
0
1
[solved] virtio boot

Hello. I'd like to use virtio for linux guests. I can install linux on a virtio drive just fine, but it won't boot afterwards. The error is "could not read the boot disk". Quick researsh shows that 'boot=on' option should be added to the virtio drive. When launched from terminal, vm boots fine. What do I edit to make it work from web interface?
 
Last edited:
virtio boot works without any issues (if your guest kernel has virtio support), post your 'pveversion -v'
 
Code:
$ pveversion -v
pve-manager: 1.6-2 (pve-manager/1.6/5087)
running kernel: 2.6.32-3-pve
proxmox-ve-2.6.32: 1.6-13
pve-kernel-2.6.32-3-pve: 2.6.32-13
pve-kernel-2.6.24-11-pve: 2.6.24-23
pve-kernel-2.6.18-2-pve: 2.6.18-5
qemu-server: 1.1-18
pve-firmware: 1.0-7
libpve-storage-perl: 1.0-13
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-7
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.12.5-1
ksm-control-daemon: 1.0-4

The guest is fedora 13. If I start it from web interface, it does not boot with mentioned error. Cmd is
/usr/bin/kvm -monitor unix:/var/run/qemu-server/103.mon,server,nowait -vnc unix:/var/run/qemu-server/103.vnc,password -pidfile /var/run/qemu-server/103.pid -daemonize -usbdevice tablet -name test-centos -smp sockets=1,cores=1 -nodefaults -boot menu=on -vga cirrus -tdf -k en-us -drive file=/dev/vg00-pve/vm-103-disk-2,if=virtio,index=0 -m 1024 -net tap,vlan=0,ifname=vmtab103i0,script=/var/lib/qemu-server/bridge-vlan -net nic,vlan=0,model=rtl8139,macaddr=E6:EF:BA:57:15:7B

If I manually (from terminal) launch
/usr/bin/kvm -monitor unix:/var/run/qemu-server/103.mon,server,nowait -vnc unix:/var/run/qemu-server/103.vnc,password -pidfile /var/run/qemu-server/103.pid -daemonize -usbdevice tablet -name test-centos -smp sockets=1,cores=1 -nodefaults -boot menu=on -vga cirrus -tdf -k en-us -drive file=/dev/vg00-pve/vm-103-disk-2,if=virtio,index=0,boot=on -m 1024 -net tap,vlan=0,ifname=vmtab103i0,script=/var/lib/qemu-server/bridge-vlan -net nic,vlan=0,model=rtl8139,macaddr=E6:EF:BA:57:15:7B
everything works okay. How do I do it from web interface?
 
will try to reproduce - which fedora cd do you use? pls provide a download link.
 
just tried (using the f13 live cd), works here. just booted the live cd, installed via the wizard and rebooted.

to validate the command executed (if you press start on the web gui), you can use the following:

Code:
qm showcmd 118

/usr/bin/kvm -monitor unix:/var/run/qemu-server/118.mon,server,nowait -vnc unix:/var/run/qemu-server/118.vnc,password -pidfile /var/run/qemu-server/118.pid -daemonize -usbdevice tablet -name fedoralive13 -smp sockets=1,cores=1 -nodefaults -boot menu=on -vga cirrus -tdf -k de -drive file=/mnt/pve/NFS-ISO-Mits2/Fedora-13-x86_64-Live.iso,if=ide,index=2,media=cdrom -drive file=/var/lib/vz/images/118/vm-118-disk-1.raw,if=virtio,index=0,boot=on -m 512 -net tap,vlan=0,ifname=vmtab118i0,script=/var/lib/qemu-server/bridge-vlan -net nic,vlan=0,model=virtio,macaddr=86:A4:D9:18:56:B2
 
okay, that's strange. I recreated and reinstalled vm and it works fine. I must've missed something.