LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-04-2020, 10:04 AM   #16
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled

Sorry, but it's hard to read this wall of text. You aren't going to run that command line by hand, are you? So why won't you format it and split into readable pieces, e.g. like this (here I did it for your command from #3):
Code:
/usr/bin/qemu-system-x86_64 -name guest=win10,debug-threads=on -S \
 -object \
  secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-1-win10/master-key.aes \
 -blockdev '
  {"node-name":"libvirt-pflash0-storage",
   "driver":"file", "auto-read-only":true,
   "filename":"/usr/share/OVMF/OVMF_CODE.fd",
   "discard":"unmap"}' \
 -blockdev '
  {"node-name":"libvirt-pflash0-format",
   "driver":"raw", "read-only":true,
   "file":"libvirt-pflash0-storage"}' \
 -blockdev '
  {"node-name":"libvirt-pflash1-storage",
   "driver":"file", "auto-read-only":true,
   "filename":"/var/lib/libvirt/qemu/nvram/win10_VARS.fd",
   "discard":"unmap"}' \
 -blockdev '
  {"node-name":"libvirt-pflash1-format",
   "driver":"raw", "read-only":false,
   "file":"libvirt-pflash1-storage"}' \
 -machine \
  pc-i440fx-3.1,accel=kvm,usb=off,vmport=off,dump-guest-core=off,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
 -cpu \
  host,hv-time,hv-relaxed,hv-vapic,hv-spinlocks=0x1fff,hv-vendor-id=ab1234567890,kvm=off \
 -m 16000 -overcommit mem-lock=off \
 -smp 14,maxcpus=196,sockets=14,cores=7,threads=2 \
 -uuid a3b8bd1a-3e0e-4e64-8f46-78d901d904cb \
 -no-user-config -nodefaults \
 -chardev socket,id=charmonitor,fd=32,server,nowait \
 -mon chardev=charmonitor,id=monitor,mode=control \
 -rtc base=localtime,driftfix=slew \
 -global kvm-pit.lost_tick_policy=delay \
 -no-hpet -no-shutdown \
 -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 \
 -boot menu=on,strict=on \
 -device qemu-xhci,p2=15,p3=15,id=usb,bus=pci.0,addr=0x5 \
 -device lsi,id=scsi0,bus=pci.0,addr=0x10 \
 -device ahci,id=sata0,bus=pci.0,addr=0x6 \
 -device ahci,id=sata1,bus=pci.0,addr=0xf \
 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0xe \
 -blockdev '
  {"node-name":"libvirt-3-storage",
   "driver":"file", "auto-read-only":true,
   "filename":"/home/ziomario/Scrivania/TooLinux/Pass/ISO/virtio-win.iso",
   "discard":"unmap"}' \
 -blockdev '
  {"node-name":"libvirt-3-format",
   "driver":"raw", "read-only":true,
   "file":"libvirt-3-storage"}' \
 -device ide-cd,bus=ide.0,unit=0,drive=libvirt-3-format,id=ide0-0-0 \
 -blockdev '
  {"node-name":"libvirt-2-storage",
   "driver":"host_device", "auto-read-only":true,
   "filename":"/dev/sda",
   "cache":{"direct":true,"no-flush":false},
   "aio":"native", "discard":"unmap"}' \
 -blockdev '
  {"node-name":"libvirt-2-format",
   "driver":"raw",
   "read-only":false,
   "cache":{"direct":true,"no-flush":false},
   "file":"libvirt-2-storage"}' \
 -device \
  ide-hd,bus=sata0.0,drive=libvirt-2-format,id=sata0-0-0,bootindex=1,write-cache=on \
 -blockdev '
  {"node-name":"libvirt-1-storage",
   "driver":"host_device", "auto-read-only":true,
   "filename":"/dev/sdb",
   "cache":{"direct":true,"no-flush":false},
   "aio":"native", "discard":"unmap"}' \
 -blockdev '
  { "node-name":"libvirt-1-format",
   "driver":"raw", "read-only":false,
   "cache":{"direct":true,"no-flush":false},
   "file":"libvirt-1-storage"}' \
 -device \
  ide-hd,bus=sata0.2,drive=libvirt-1-format,id=sata0-0-2,write-cache=on \
 -netdev tap,fd=34,id=hostnet0 \
 -device \
  e1000,netdev=hostnet0,id=net0,mac=52:54:00:e4:59:85,bus=pci.0,addr=0x3 \
 -chardev pty,id=charserial0 \
 -device isa-serial,chardev=charserial0,id=serial0 \
 -chardev spicevmc,id=charchannel0,name=vdagent \
 -device \
  virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 \
 -device usb-tablet,id=input0,bus=usb.0,port=3 \
 -spice \
  port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on \
 -device \
  qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=p ci.0,addr=0x2 \
 -device AC97,id=sound0,bus=pci.0,addr=0x4 \
 -device intel-hda,id=sound1,bus=pci.0,addr=0xd \
 -device hda-duplex,id=sound1-codec0,bus=sound1.0,cad=0 \
 -chardev spicevmc,id=charredir0,name=usbredir \
 -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=4 \
 -chardev spicevmc,id=charredir1,name=usbredir \
 -device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=2 \
 -device vfio-pci,host=0000:01:00.0,id=hostdev0,bus=pci.0,addr=0x7 \
 -device vfio-pci,host=0000:01:00.1,id=hostdev1,bus=pci.0,addr=0x8 \
 -device vfio-pci,host=0000:01:00.2,id=hostdev2,bus=pci.0,addr=0x9 \
 -device vfio-pci,host=0000:01:00.3,id=hostdev3,bus=pci.0,addr=0xa \
 -device vfio-pci,host=0000:00:12.0,id=hostdev4,bus=pci.0,addr=0xb \
 -device usb-host,hostbus=1,hostaddr=8,id=hostdev5,bus=usb.0,port=1 \
 -device usb-host,hostbus=1,hostaddr=6,id=hostdev6,bus=usb.0,port=5 \
 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0xc \
 -sandbox \
  on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on

Last edited by shruggy; 07-04-2020 at 10:05 AM.
 
Old 07-09-2020, 04:29 AM   #17
marietto2008
LQ Newbie
 
Registered: May 2020
Posts: 23

Rep: Reputation: Disabled
thanks. it gives the following error :

root@ziomario-I9:/home/ziomario/Scrivania# ./qemu-split.sh

qemu-system-x86_64: -blockdev
{"node-name":"libvirt-pflash0-storage",
"driver":"file", "auto-read-only":true,
"filename":"/usr/share/OVMF/OVMF_CODE.fd",
"discard":"unmap"}: Invalid parameter '
"driver":"file"'

Last edited by marietto2008; 07-09-2020 at 04:33 AM.
 
Old 12-02-2021, 05:33 PM   #18
marietto
Member
 
Registered: Aug 2010
Posts: 96

Original Poster
Rep: Reputation: 17
this problem is still unfixed. someone wants to help me further ? thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libvirt/QEMU: changing "save" directory for qemu:///session connection atelszewski Linux - Virtualization and Cloud 0 01-10-2018 02:44 PM
[SOLVED] libvirt: how to lock qemu image disk in qemu:///session ? atelszewski Linux - Virtualization and Cloud 1 12-18-2017 11:23 AM
libvirt: post virt-clone, unchanged values in resulting XML file from original XML file CptSupermrkt Linux - Virtualization and Cloud 1 04-14-2016 08:20 AM
transformation between libvirt xml and qemu native command screwzm Linux - Virtualization and Cloud 0 01-19-2013 10:44 AM
[SOLVED] How can I use the command line to split a single-lined XML into a multi-line XML xexers Linux - Software 3 12-09-2010 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration