TritonDataCenter / smartos-live

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

Open b4 opened 9 years ago

b4 commented 9 years ago

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.

b4 commented 9 years ago

(Mostly-unrelated but this gets me scrub disk transfer rates of less than 100K/sec with 99.8% CPU idle in VM.)