search for: host_device

Displaying 16 results from an estimated 16 matches for "host_device".

Did you mean: vhost_device
2020 Oct 28
2
proper config for qemu's host_cdrom
Greetings, I was wondering what is the proper way to configure a scsi cdrom pass-through so in when the qemu line is generated, host_Cdrom will be used instead of host_device. looking at https://gitlab.com/libvirt/libvirt/-/blob/master/src/qemu/qemu_block.c#L1090, I see that hostcdrom must be true. in order for that to be true, the following must be (see https://gitlab.com/libvirt/libvirt/-/blob/master/src/qemu/qemu_domain.c#L7167): 1. disk->device == VIR_DOMAIN_DIS...
2020 Oct 15
2
Re: scsi passthrough differs between guests
...mat=raw,id=drive-hostdev0,readonly=on \ > > -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-hostdev0,id=hostdev0 \ > > [...] > > > the bad one: > > /usr/bin/qemu-system-x86_64 \ > > [...] > > > -blockdev '{"driver":"host_device","filename":"/dev/sg0","node-name":"libvirt-hostdev0-backend","read-only":true}' \ > > -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=libvirt-hostdev0-backend,id=hostdev0 \ > > This doesn't corelate with th...
2020 Nov 02
0
Re: proper config for qemu's host_cdrom
On Wed, Oct 28, 2020 at 15:06:51 +0100, daggs wrote: > Greetings, > > I was wondering what is the proper way to configure a scsi cdrom pass-through so in when the qemu line is generated, host_Cdrom will be used instead of host_device. > > looking at https://gitlab.com/libvirt/libvirt/-/blob/master/src/qemu/qemu_block.c#L1090, I see that hostcdrom must be true. > in order for that to be true, the following must be (see https://gitlab.com/libvirt/libvirt/-/blob/master/src/qemu/qemu_domain.c#L7167): > 1. disk->devi...
2017 Apr 19
2
virsh error: driver is not whitelisted
...e thing about this error is that when I check the available drives, there is vvfat in the list: /usr/libexec/qemu-kvm -drive format=? Supported formats: ftps http null-aio null-co file quorum blkverify vvfat blkreplay qed raw qcow2 bochs dmg vmdk parallels vhdx vpc https sheepdog host_cdrom ssh host_device nbd gluster qcow iscsi rbd tftp ftp vdi blkdebug luks cloop Here some information about the environment: cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) virsh --version 2.0.0 /usr/libexec/qemu-kvm --version QEMU emulator version 2.6.0 (qemu-kvm-ev-2.6.0-28.el7_3.6.1), Copyright (...
2020 Oct 15
2
Re: scsi passthrough differs between guests
...,addr=0x0,drive=libvirt-1-format,id=virtio-disk0,bootindex=1 \ -netdev tap,fd=28,id=hostnet0 \ -device e1000e,netdev=hostnet0,id=net0,mac=52:54:00:5a:4c:8c,bus=pci.3,addr=0x0 \ -chardev pty,id=charserial0 \ -device isa-serial,chardev=charserial0,id=serial0 \ -blockdev '{"driver":"host_device","filename":"/dev/sg0","node-name":"libvirt-hostdev0-backend","read-only":true}' \ -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=libvirt-hostdev0-backend,id=hostdev0 \ -device vfio-pci,host=0000:00:02.0,id=hostdev1,bus=pc...
2020 Oct 15
0
Re: scsi passthrough differs between guests
...[...] > -drive file=/dev/sg5,if=none,format=raw,id=drive-hostdev0,readonly=on \ > -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-hostdev0,id=hostdev0 \ [...] > the bad one: > /usr/bin/qemu-system-x86_64 \ [...] > -blockdev '{"driver":"host_device","filename":"/dev/sg0","node-name":"libvirt-hostdev0-backend","read-only":true}' \ > -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=libvirt-hostdev0-backend,id=hostdev0 \ This doesn't corelate with the version numb...
2020 Oct 15
0
Re: scsi passthrough differs between guests
...> -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-hostdev0,id=hostdev0 \ > > > > [...] > > > > > the bad one: > > > /usr/bin/qemu-system-x86_64 \ > > > > [...] > > > > > -blockdev '{"driver":"host_device","filename":"/dev/sg0","node-name":"libvirt-hostdev0-backend","read-only":true}' \ > > > -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=libvirt-hostdev0-backend,id=hostdev0 \ > > > > This doesn't c...
2017 Apr 19
0
virsh error: driver is not whitelisted
...that when I check the > available drives, there is vvfat in the list: > > /usr/libexec/qemu-kvm -drive format=? > Supported formats: ftps http null-aio null-co file quorum blkverify > vvfat blkreplay qed raw qcow2 bochs dmg vmdk parallels vhdx vpc https > sheepdog host_cdrom ssh host_device nbd gluster qcow iscsi rbd tftp ftp > vdi blkdebug luks cloop > > Here some information about the environment: > > cat /etc/redhat-release > CentOS Linux release 7.3.1611 (Core) > > virsh --version > 2.0.0 > > /usr/libexec/qemu-kvm --version > QEMU emulator v...
2008 Aug 29
1
[RFC] [PATCH] SCSI passthrough for virtio-blk
Hi all, I got bored and implemented SCSI passthrough for the virtio-blk driver. Principle is quite simple, just put the missing fields (cdb, sense and status header) on the virtio queue and then call the SG_IO ioctl on the host. So when using '-drive file=/dev/sgXX,if=virtio,format=host_device' you can happily call any sg_XX command on the resulting vdX device. Quite neat, methinks. And it's even backwards compatible, so each of these patches should work without the other one applied. As one would have guessed there are two patches, one for the linux kernel to modify the virtio-...
2008 Aug 29
1
[RFC] [PATCH] SCSI passthrough for virtio-blk
Hi all, I got bored and implemented SCSI passthrough for the virtio-blk driver. Principle is quite simple, just put the missing fields (cdb, sense and status header) on the virtio queue and then call the SG_IO ioctl on the host. So when using '-drive file=/dev/sgXX,if=virtio,format=host_device' you can happily call any sg_XX command on the resulting vdX device. Quite neat, methinks. And it's even backwards compatible, so each of these patches should work without the other one applied. As one would have guessed there are two patches, one for the linux kernel to modify the virtio-...
2014 Feb 13
0
Problem with cdrom device on guest
...I found this bugzilla report. https://bugzilla.redhat.com/show_bug.cgi?id=709585 Which is curiously marked as CLOSED DEFERRED. The last comment in that bug contains this: > Summary of findings so far: > > format=raw doesn't work with /dev/sr0. Omitting format=raw works. > format=host_device works. > > Apparently, virt-manager specifically asks for "raw". > > Things are different in RHEL-6: format=raw works, > format=host_device doesn't, format=host_cdrom does > (doesn't exist in RHEL-5). Now, in my configuration files there is no 'format' a...
2012 Jun 04
1
guestfish1.7.17 does not support qemu-kvm1.0.93?
...ftmmu \ --prefix=/usr/local/qemu-kvm \ --sysconfdir=/etc \ --audio-drv-list=alsa \ --audio-card-list=ac97,es1370 \ --disable-strip \ --disable-xen \ --enable-virtfs \ --block-drv-whitelist=qcow2,raw,file,host_device,host_cdrom,qed \ --disable-debug-tcg \ --disable-sparse \ --enable-werror \ --disable-sdl \ --disable-curses \ --disable-curl \ --enable-vnc \ --enable-vnc-tls \ --enable-vnc-sasl \...
2013 Oct 22
0
Re: kvm/libvirt can't use vmdk files? qemu: 'vmdk' invalid format
...running with command line instead of XML I get error though it says it is supported [root@vmdkTOKVM]# /usr/libexec/qemu-kvm -drive file=/mnt/vmdkTOKVM/vmdkTOKVM.vmdk,format=? Supported formats: raw cow qcow vdi vmdk cloop dmg bochs vpc vvfat qcow2 qed parallels nbd blkdebug host_cdrom host_floppy host_device file [root@vmdkTOKVM]# /usr/libexec/qemu-kvm -drive file=/mnt/vmdkTOKVM/vmdkTOKVM.vmdk,format=vmdk qemu-kvm: -drive file=/mnt/XOcom-prx-kvm/XOcom-prx-kvm.vmdk,format=vmdk: 'vmdk' invalid format The packages being used are: qemu-img-0.12.1.2-2.355.0.1.el6_4.9.x86_64 qemu-kvm-0.12.1.2-2.3...
2022 Sep 01
2
Backup KVM Guest VM in OVA or VMDK format
Hi, Is there a way to backup KVM Guest VM running CentOS Linux release 7.9.2009 (Core) OS in kvmguestosimage.ova or kvmguestosimage.vmdk format as I am trying to restore it in AWS by referring to https://aws.amazon.com/ec2/vm-import/ article as per the below supported file format. [1] Open Virtualization Archive (OVA) [2] Virtual Machine Disk (VMDK) [3] Virtual Hard Disk (VHD/VHDX) [4] raw Also
2020 Aug 15
2
unable to migrate non shared storage in tunneled mode
...chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 \ -device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2 \ -device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x3 \ -device qemu-xhci,p2=15,p3=15,id=usb,bus=pci.1,addr=0x0 \ -blockdev '{"driver":"host_device","filename":"/dev/vg0/test","aio":"native","node-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \ -blockdev...
2020 Oct 14
2
scsi passthrough differs between guests
Greetings, I have two machines running the same distro, both running qemu 5.1.0, one runs libvirt 6.7.0, the other 6.8.0. I've decided to test the viability of passing through my sata cdrom into a vm, so I went to the libvirt docs, read a bit and added the following to a debian10 uefi vm running on libvirt 6.8.0: <controller type='scsi' index='0'