For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.57k
stars
243
forks
source link
Manual disk passthrough failing, QEMU not giving enough debug #364
(I am aware it requires /dev/rdsk and not /dev/dsk, I tried both...should still have more debug output)
[root@00-1b-21-d1-3b-df ~]# vmadm start -v 0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6 order=cd,once=d cdrom=/NAS4Free-x64-LiveCD-9.2.0.1.972.iso,ide
Unable to start VM 0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6: timed out waiting for zone to transition to running
[root@00-1b-21-d1-3b-df ~]# cat /zones/0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6/root/tmp/vm.startvm.log
[[ -x /startvm.zone ]]
exec /smartdc/bin/qemu-exec /smartdc/bin/qemu-system-x86_64 -m 4096 -name 0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6 -uuid 0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6 -cpu qemu64 -drive file=/dev/zvol/rdsk/zones/0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6-disk0,if=virtio,index=0,media=disk,boot=on -drive file=/NAS4Free-x64-LiveCD-9.2.0.1.972.iso,if=ide,index=1,media=cdrom -boot order=cd,once=d -device virtio-net-pci,mac=d2:cd:98:98:84:85,tx=timer,x-txtimer=200000,x-txburst=128,vlan=0 -net vnic,name=net0,vlan=0,ifname=net0,ip=10.10.0.3,netmask=255.255.0.0,gateway_ip=10.10.0.1,hostname=0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6,dns_ip0=10.10.0.2,dns_ip1=208.67.220.220 -smbios 'type=1,manufacturer=Joyent,product=SmartDC HVM,version=7.20141113T164921Z,serial=0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6,uuid=0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6,sku=001,family=Virtual Machine' -pidfile /tmp/vm.pid -vga std -chardev socket,id=qmp,path=/tmp/vm.qmp,server,nowait -qmp chardev:qmp -chardev socket,id=serial0,path=/tmp/vm.console,server,nowait -serial chardev:serial0 -chardev socket,id=serial1,path=/tmp/vm.ttyb,server,nowait -serial chardev:serial1 -vnc unix:/tmp/vm.vnc -parallel none -usb -usbdevice tablet -k en-us -drive file=/dev/dsk/c1t1d0p0,if=virtio -drive file=/dev/dsk/c1t2d0p0,if=virtio
/tmp/vm.log.8: No such file or directory
/tmp/vm.log.7: No such file or directory
/tmp/vm.log.6: No such file or directory
/tmp/vm.log.5: No such file or directory
/tmp/vm.log.4: No such file or directory
/tmp/vm.log.3: No such file or directory
/tmp/vm.log.2: No such file or directory
/tmp/vm.log.1: No such file or directory
/tmp/vm.log.0: No such file or directory
[root@00-1b-21-d1-3b-df ~]# cat /usbkey/
config shadow ssh/ vm-configs/
[root@00-1b-21-d1-3b-df ~]# cat /usbkey/vm-configs/marie-nas.json
{
"brand": "kvm",
"vcpus": 1,
"autoboot": false,
"ram": 4096,
"resolvers": ["10.10.0.2", "208.67.220.220"],
"alias": "marie",
"qemu_extra_opts": "-drive file=/dev/dsk/c1t1d0p0,if=virtio -drive file=/dev/dsk/c1t2d0p0,if=virtio",
"disks": [
{
"boot": true,
"model": "virtio",
"size": 8196
}
],
"nics": [
{
"nic_tag": "admin",
"model": "virtio",
"ip": "10.10.0.3",
"netmask": "255.255.0.0",
"gateway": "10.10.0.1",
"primary": 1
}
]
}
[root@00-1b-21-d1-3b-df ~]# qemu-system-x86_64 -drive file=/dev/dsk/c1t1d0p0,if=virtio -drive file=/dev/dsk/c1t2d0p0,if=virtio -nographic
Start bios (version 0.6.1.2-20110201_165504-titi)
Ram Size=0x08000000 (0x0000000000000000 high)
CPU Mhz=3000
PCI: pci_bios_init_bus_rec bus = 0x0
PIIX3/PIIX4 init: elcr=00 0c
PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237
PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000
PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010
region 4: 0x0000c000
PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113
PCI: bus=0 devfn=0x10: vendor_id=0x1013 device_id=0x00b8
region 0: 0xf0000000
region 1: 0xf2000000
region 6: 0xf2010000
PCI: bus=0 devfn=0x18: vendor_id=0x10ec device_id=0x8139
region 0: 0x0000c100
region 1: 0xf2020000
region 6: 0xf2030000
PCI: bus=0 devfn=0x20: vendor_id=0x1af4 device_id=0x1001
region 0: 0x0000c200
region 1: 0xf2040000
PCI: bus=0 devfn=0x28: vendor_id=0x1af4 device_id=0x1001
region 0: 0x0000c240
region 1: 0xf2041000
Found 1 cpu(s) max supported 1 cpu(s)
MP table addr=0x000fdbf0 MPC table addr=0x000fdc00 size=232
SMBIOS ptr=0x000fdbd0 table=0x07fffef0
ACPI tables: RSDP=0x000fdba0 RSDT=0x07ffdc40
Scan for VGA option rom
Running option rom at c000:0003
VGABios $Id$
Turning on vga text mode console
SeaBIOS (version 0.6.1.2-20110201_165504-titi)
Found 1 lpt ports
Found 1 serial ports
ATA controller 0 at 1f0/3f4/0 (irq 14 dev 9)
ATA controller 1 at 170/374/0 (irq 15 dev 9)
found virtio-blk at 0:4
ebda moved from 9fc00 to 9dc00
drive 0x000fdb50: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=-1
found virtio-blk at 0:5
ebda moved from 9dc00 to 9bc00
drive 0x000fdb20: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=-1
ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD
PS2 keyboard initialized
All threads complete.
Scan for option roms
Running option rom at c900:0003
pnp call arg1=60
pmm call arg1=0
pmm call arg1=2
pmm call arg1=0
Running option rom at c980:0003
Returned 53248 bytes of ZoneHigh
e820 map has 7 items:
0: 0000000000000000 - 000000000009bc00 = 1
1: 000000000009bc00 - 00000000000a0000 = 2
2: 00000000000f0000 - 0000000000100000 = 2
3: 0000000000100000 - 0000000007ffd000 = 1
4: 0000000007ffd000 - 0000000008000000 = 2
5: 00000000feffc000 - 00000000ff000000 = 2
6: 00000000fffc0000 - 0000000100000000 = 2
enter handle_19:
NULL
Booting from Hard Disk...
Boot failed: not a bootable disk
enter handle_18:
NULL
Booting from Floppy...
Boot failed: could not read the boot disk
enter handle_18:
NULL
Booting from DVD/CD...
Device reports MEDIUM NOT PRESENT
atapi_is_ready returned -1
Boot failed: Could not read from CDROM (code 0003)
enter handle_18:
NULL
No bootable device.
Hello all,
Due to a BSD glitch I need to (temporarily) pass some disks directly to the VM.
Adding -m 4096 and -cdrom to the command line manually greatly increases the start time...could it be a timeout?
[root@00-1b-21-d1-3b-df ~]# time qemu-system-x86_64 -drive file=/dev/dsk/c1t1d0p0,if=virtio -drive file=/dev/dsk/c1t2d0p0,if=virtio -cdrom /zones/NAS4Free-x64-LiveCD-9.2.0.1.972.iso -m 4096 -vnc 0.0.0.0:8 -daemonize
real 0m5.580s user 0m0.001s sys 0m0.003s
This is failing:
(I am aware it requires /dev/rdsk and not /dev/dsk, I tried both...should still have more debug output)
[root@00-1b-21-d1-3b-df ~]# vmadm start -v 0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6 order=cd,once=d cdrom=/NAS4Free-x64-LiveCD-9.2.0.1.972.iso,ide Unable to start VM 0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6: timed out waiting for zone to transition to running [root@00-1b-21-d1-3b-df ~]# cat /zones/0820c959-4ec4-4ae9-8d03-eccb8e9bb2a6/root/tmp/vm.startvm.log
Found 1 lpt ports Found 1 serial ports ATA controller 0 at 1f0/3f4/0 (irq 14 dev 9) ATA controller 1 at 170/374/0 (irq 15 dev 9) found virtio-blk at 0:4 ebda moved from 9fc00 to 9dc00 drive 0x000fdb50: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=-1 found virtio-blk at 0:5 ebda moved from 9dc00 to 9bc00 drive 0x000fdb20: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=-1 ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD PS2 keyboard initialized All threads complete. Scan for option roms Running option rom at c900:0003 pnp call arg1=60 pmm call arg1=0 pmm call arg1=2 pmm call arg1=0 Running option rom at c980:0003 Returned 53248 bytes of ZoneHigh e820 map has 7 items: 0: 0000000000000000 - 000000000009bc00 = 1 1: 000000000009bc00 - 00000000000a0000 = 2 2: 00000000000f0000 - 0000000000100000 = 2 3: 0000000000100000 - 0000000007ffd000 = 1 4: 0000000007ffd000 - 0000000008000000 = 2 5: 00000000feffc000 - 00000000ff000000 = 2 6: 00000000fffc0000 - 0000000100000000 = 2 enter handle_19: NULL Booting from Hard Disk... Boot failed: not a bootable disk
enter handle_18: NULL Booting from Floppy... Boot failed: could not read the boot disk
enter handle_18: NULL Booting from DVD/CD... Device reports MEDIUM NOT PRESENT atapi_is_ready returned -1 Boot failed: Could not read from CDROM (code 0003) enter handle_18: NULL No bootable device.