Commit 55e3ee91 by Zoltan Karsa

update cpu type

parent dad51817
echo "$1" > /sys/class/mdev_bus/$2/mdev_supported_types/$3/create echo "$1" > /sys/class/mdev_bus/$2/mdev_supported_types/$3/create
mdevctl define --auto --uuid $1 #mdevctl define --auto --uuid $1
\ No newline at end of file \ No newline at end of file
[2023-08-08 11:51:56] - INFO: Executing:
(exec: "/bin/qemu-system-x86_64", args:
@["-D",
"/home/cloud/.local/libvf.io/logs/qemu/99a34fe5-451a-4b68-a692-3b5ec2e46849-session.txt",
"-no-hpet", "-mem-prealloc",
"-uuid", "99a34fe5-451a-4b68-a692-3b5ec2e46849",
"-machine", "pc-q35-4.2,accel=kvm,usb=off,vmport=off,dump-guest-core=off",
"-cpu", "host,ss=on,vmx=on,pcid=on,
-hypervisor,arat=on,tsc-adjust=on,umip=on,md-clear=on,stibp=on,
arch-capabilities=on,ssbd=on,xsaveopt=on,pdpe1gb=on,ibpb=on,amd-stibp=on,amd-ssbd=on,
skip-l1dfl-vmentry=on,pschange-mc-no=on,hv-vapic,hv_time,hv-spinlocks=0x1fff,hv-vendor-id=null,
kvm=off,topoext=on", "-rtc",
"clock=host,base=localtime",
"-m", "4096", "-smp", "cores=1,threads=2,sockets=1",
"-hda", "/home/cloud/.local/libvf.io/live/99a34fe5-451a-4b68-a692-3b5ec2e46849",
"--enable-kvm", "-device",
"vfio-pci,id=hostdev0,sysfsdev=/sys/bus/mdev/devices/d3f92818-d658-48ac-a964-c773af3a932d,
display=off", "-device", "rtl8139,netdev=net0", "-netdev",
"user,id=net0,hostfwd=tcp::2222-:22",
"-net", "user", "-net", "nic", "-device", "vhost-vsock-pci,guest-cid=11257",
"-qmp", "unix:/tmp/sockets/99a34fe5-451a-4b68-a692-3b5ec2e46849/main.sock,server,nowait",
"-qmp", "unix:/tmp/sockets/99a34fe5-451a-4b68-a692-3b5ec2e46849/master.sock,server,nowait",
"-cdrom", "/data/img/ubuntu-20.04.6-live-server-amd64.iso", "-vnc", "0.0.0.0:6100"])
\ No newline at end of file
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
<memory unit='GB'>{{ram}}</memory> <memory unit='GB'>{{ram}}</memory>
<currentMemory unit='GB'>{{ram}}</currentMemory> <currentMemory unit='GB'>{{ram}}</currentMemory>
<vcpu>{{vcpu}}</vcpu> <vcpu>{{vcpu}}</vcpu>
<cpu mode='host-passthrough'>
<feature policy='require' name='vmx'/>
<feature policy='require' name='ss'/>
<feature policy='require' name='pcid'/>
</cpu>
<os> <os>
<type arch='i686' machine='pc'>hvm</type> <type arch='i686' machine='pc'>hvm</type>
</os> </os>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment