Advertisement
Guest User

Untitled

a guest
Apr 14th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.42 KB | None | 0 0
  1. [srestha@localhost virt-manager]$ ./virt-install --name "foobar" --os-variant fedora29 --unattend profile=desktop --debug --print-xml --dry-run
  2. [Sun, 14 Apr 2019 10:24:32 virt-install 13313] DEBUG (cli:204) Launched with command line: ./virt-install --name foobar --os-variant fedora29 --unattend profile=desktop --debug --print-xml --dry-run
  3. [Sun, 14 Apr 2019 10:24:32 virt-install 13313] DEBUG (virt-install:238) Distilled --network options: ['default']
  4. [Sun, 14 Apr 2019 10:24:32 virt-install 13313] DEBUG (virt-install:159) Distilled --disk options: []
  5. [Sun, 14 Apr 2019 10:24:32 virt-install 13313] DEBUG (cli:218) Requesting libvirt URI default
  6. [Sun, 14 Apr 2019 10:24:33 virt-install 13313] DEBUG (cli:221) Received libvirt URI qemu:///session
  7. [Sun, 14 Apr 2019 10:24:33 virt-install 13313] DEBUG (guest:385) Setting Guest osinfo <_OsVariant name=fedora29>
  8. [Sun, 14 Apr 2019 10:24:33 virt-install 13313] DEBUG (virt-install:462) Generated default libosinfo '--location https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os'
  9. [Sun, 14 Apr 2019 10:24:33 virt-install 13313] DEBUG (urlfetcher:35) Using scratchdir=/home/srestha/.cache/virt-manager/boot
  10. [Sun, 14 Apr 2019 10:24:33 virt-install 13313] DEBUG (urldetect:281) Finding distro store for location=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os
  11. [Sun, 14 Apr 2019 10:24:33 virt-install 13313] DEBUG (urldetect:859) variant=fedora29 has distro=fedora, looking for matching distro store to prioritize
  12. [Sun, 14 Apr 2019 10:24:33 virt-install 13313] DEBUG (urldetect:866) Prioritizing distro store=<class 'virtinst.urldetect._FedoraDistro'>
  13. [Sun, 14 Apr 2019 10:24:36 virt-install 13313] DEBUG (connectionpool:823) Starting new HTTPS connection (1): download.fedoraproject.org:443
  14. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (connectionpool:393) https://download.fedoraproject.org:443 "GET /pub/fedora/linux/releases/29/Workstation/x86_64/os/.treeinfo HTTP/1.1" 302 0
  15. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (connectionpool:205) Starting new HTTP connection (1): mirror.cse.iitk.ac.in:80
  16. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (connectionpool:393) http://mirror.cse.iitk.ac.in:80 "GET /fedora/linux/releases/29/Workstation/x86_64/os/.treeinfo HTTP/1.1" 200 1557
  17. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (urlfetcher:67) Fetching URI: https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os/.treeinfo
  18. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (urldetect:71) treeinfo family=Fedora
  19. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (urldetect:75) Found treeinfo version=29
  20. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (urldetect:79) Found treeinfo name=Fedora 29
  21. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (urldetect:295) Detected class=_LibosinfoDistro osvariant=fedora29
  22. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (installer:338) installer.detect_distro returned=fedora29
  23. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (virt-install:532) Generated default libosinfo '--disk size=20'
  24. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (storage:195) Attempting to build default pool with target '/home/srestha/.local/share/libvirt/images'
  25. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (storage:477) Creating storage pool 'default' with xml:
  26. <pool type="dir">
  27. <name>default</name>
  28. <target>
  29. <path>/home/srestha/.local/share/libvirt/images</path>
  30. </target>
  31. </pool>
  32.  
  33. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (disk:282) Creating volume 'foobar.qcow2' on pool 'default'
  34. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (disk:408) disk.set_vol_install: name=foobar.qcow2 poolxml=
  35. <pool type='dir'>
  36. <name>default</name>
  37. <uuid>1b6dacbd-44fd-4049-b9bd-f305e8b63788</uuid>
  38. <capacity unit='bytes'>43051499520</capacity>
  39. <allocation unit='bytes'>632410112</allocation>
  40. <available unit='bytes'>42419089408</available>
  41. <source>
  42. </source>
  43. <target>
  44. <path>/home/srestha/.local/share/libvirt/images</path>
  45. <permissions>
  46. <mode>0775</mode>
  47. <owner>1000</owner>
  48. <group>1000</group>
  49. <label>unconfined_u:object_r:svirt_home_t:s0</label>
  50. </permissions>
  51. </target>
  52. </pool>
  53.  
  54. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (graphics:235) Using default_graphics=spice
  55. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (graphics:246) Local connection, disabling spice image compression.
  56. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (osdict:592) Install script found for profile 'desktop'
  57. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:184) Using 'initrd' injection method
  58. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:206) Using 'network' installation source
  59. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:122) InstallScriptConfig created with the following params:
  60. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:123) username: srestha
  61. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:124) realname: Srestha Srivastava
  62. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:125) user password:
  63. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:126) admin password:
  64. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:127) target disk: /dev/vda
  65. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:128) hardware arch: x86_64
  66. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:129) hostname: foobar
  67. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:130) timezone: America/New_York
  68. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:131) language: en_US
  69. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:132) keyboard: en_US
  70. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:134) url: https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os
  71. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (unattended:135) product-key: None
  72. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (installertreemedia:191) Generated unattended cmdline: ks=file:/fedora.ks
  73. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (installertreemedia:192) Generated unattended script: /home/srestha/.cache/virt-manager/unattended/fedora.ks
  74. [Sun, 14 Apr 2019 10:24:38 virt-install 13313] DEBUG (installertreemedia:194) Generated script contents:
  75.  
  76. # Install script for fedora29 profile desktop
  77. keyboard 'us'
  78. lang en_US
  79. network --onboot yes --bootproto dhcp --noipv6 --hostname=foobar
  80. rootpw dummyPa55w0rd # Actual password set (or unset) in %post below
  81. firewall --disabled
  82.  
  83. authselect select sssd
  84.  
  85. timezone --utc America/New_York
  86. bootloader --location=mbr
  87. zerombr
  88.  
  89. clearpart --all --drives=/dev/vda
  90.  
  91. firstboot --disable
  92.  
  93. autopart
  94. reboot
  95.  
  96.  
  97. repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
  98. repo --name=updates --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
  99. url --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
  100.  
  101.  
  102. %packages
  103.  
  104. @standard
  105. @epiphany
  106. @firefox
  107. @multimedia
  108.  
  109. @core
  110. @hardware-support
  111. @base-x
  112. @gnome-desktop
  113.  
  114. # QXL driver and SPICE vdagent
  115. xorg-x11-drv-qxl
  116. spice-vdagent
  117.  
  118.  
  119. spice-webdavd
  120.  
  121. qemu-guest-agent
  122.  
  123.  
  124. %end
  125.  
  126. %post --erroronfail
  127.  
  128. useradd -G wheel srestha # Add user
  129. if test -z ''; then
  130. passwd -d srestha # Make user account passwordless
  131. else
  132. echo '' |passwd --stdin srestha
  133. fi
  134.  
  135. if test -z ''; then
  136. passwd -d root # Make root account passwordless
  137. else
  138. echo '' |passwd --stdin root
  139. fi
  140.  
  141. # Set user avatar
  142. if test -n ''; then
  143. mkdir /mnt/unattended-media
  144. mount /mnt/unattended-media
  145. cp /mnt/unattended-media /var/lib/AccountsService/icons/srestha
  146. umount /mnt/unattended-media
  147. fi
  148.  
  149. echo "
  150. [User]
  151. Language=
  152. XSession=
  153. Icon=/var/lib/AccountsService/icons/srestha
  154. " >> /var/lib/AccountsService/users/srestha
  155.  
  156. # Enable autologin
  157. echo "[daemon]
  158. AutomaticLoginEnable=true
  159. AutomaticLogin=srestha
  160.  
  161. [security]
  162.  
  163. [xdmcp]
  164.  
  165. [greeter]
  166.  
  167. [chooser]
  168.  
  169. [debug]
  170. " > /etc/gdm/custom.conf
  171.  
  172. %end
  173.  
  174. [Sun, 14 Apr 2019 10:24:39 virt-install 13313] DEBUG (connectionpool:393) https://download.fedoraproject.org:443 "HEAD /pub/fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/vmlinuz HTTP/1.1" 302 0
  175. [Sun, 14 Apr 2019 10:24:39 virt-install 13313] DEBUG (connectionpool:393) http://mirror.cse.iitk.ac.in:80 "HEAD /fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/vmlinuz HTTP/1.1" 200 0
  176. [Sun, 14 Apr 2019 10:24:39 virt-install 13313] DEBUG (urlfetcher:137) hasFile(https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/vmlinuz) returning True
  177. [Sun, 14 Apr 2019 10:24:39 virt-install 13313] DEBUG (connectionpool:393) https://download.fedoraproject.org:443 "HEAD /pub/fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/initrd.img HTTP/1.1" 302 0
  178. [Sun, 14 Apr 2019 10:24:40 virt-install 13313] DEBUG (connectionpool:393) http://mirror.cse.iitk.ac.in:80 "HEAD /fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/initrd.img HTTP/1.1" 200 0
  179. [Sun, 14 Apr 2019 10:24:40 virt-install 13313] DEBUG (urlfetcher:137) hasFile(https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/initrd.img) returning True
  180. [Sun, 14 Apr 2019 10:24:40 virt-install 13313] DEBUG (connectionpool:393) https://download.fedoraproject.org:443 "GET /pub/fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/vmlinuz HTTP/1.1" 302 0
  181. [Sun, 14 Apr 2019 10:24:40 virt-install 13313] DEBUG (connectionpool:393) http://mirror.cse.iitk.ac.in:80 "GET /fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/vmlinuz HTTP/1.1" 200 8618168
  182. [Sun, 14 Apr 2019 10:24:40 virt-install 13313] DEBUG (urlfetcher:67) Fetching URI: https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/vmlinuz
  183. [Sun, 14 Apr 2019 10:24:43 virt-install 13313] DEBUG (urlfetcher:157) Saved file to /home/srestha/.cache/virt-manager/boot/virtinst-vmlinuz.a8f7gbsq
  184. [Sun, 14 Apr 2019 10:24:43 virt-install 13313] DEBUG (connectionpool:393) https://download.fedoraproject.org:443 "GET /pub/fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/initrd.img HTTP/1.1" 302 0
  185. [Sun, 14 Apr 2019 10:24:43 virt-install 13313] DEBUG (connectionpool:393) http://mirror.cse.iitk.ac.in:80 "GET /fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/initrd.img HTTP/1.1" 200 65644032
  186. [Sun, 14 Apr 2019 10:24:43 virt-install 13313] DEBUG (urlfetcher:67) Fetching URI: https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os/images/pxeboot/initrd.img
  187. [Sun, 14 Apr 2019 10:25:34 virt-install 13313] DEBUG (urlfetcher:157) Saved file to /home/srestha/.cache/virt-manager/boot/virtinst-initrd.img.qc4ncnwk
  188. [Sun, 14 Apr 2019 10:25:34 virt-install 13313] DEBUG (initrdinject:25) Copying /home/srestha/.cache/virt-manager/unattended/fedora.ks to the initrd.
  189. [Sun, 14 Apr 2019 10:25:34 virt-install 13313] DEBUG (initrdinject:28) Appending to the initrd.
  190. [Sun, 14 Apr 2019 10:25:34 virt-install 13313] DEBUG (kernelupload:120) Have access to preferred scratchdir so nothing to upload
  191. [Sun, 14 Apr 2019 10:25:34 virt-install 13313] DEBUG (installer:385) Generated install XML:
  192. <domain type="kvm">
  193. <name>foobar</name>
  194. <uuid>6773531e-03e8-41f2-acf0-18c622a085ef</uuid>
  195. <metadata>
  196. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  197. <libosinfo:os id="http://fedoraproject.org/fedora/29"/>
  198. </libosinfo:libosinfo>
  199. </metadata>
  200. <memory>2097152</memory>
  201. <currentMemory>2097152</currentMemory>
  202. <vcpu>1</vcpu>
  203. <os>
  204. <type arch="x86_64" machine="q35">hvm</type>
  205. <kernel>/home/srestha/.cache/virt-manager/boot/virtinst-vmlinuz.a8f7gbsq</kernel>
  206. <initrd>/home/srestha/.cache/virt-manager/boot/virtinst-initrd.img.qc4ncnwk</initrd>
  207. <cmdline>ks=file:/fedora.ks inst.repo=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os</cmdline>
  208. </os>
  209. <features>
  210. <acpi/>
  211. <apic/>
  212. <vmport state="off"/>
  213. </features>
  214. <cpu mode="host-model"/>
  215. <clock offset="utc">
  216. <timer name="rtc" tickpolicy="catchup"/>
  217. <timer name="pit" tickpolicy="delay"/>
  218. <timer name="hpet" present="no"/>
  219. </clock>
  220. <on_reboot>destroy</on_reboot>
  221. <pm>
  222. <suspend-to-mem enabled="no"/>
  223. <suspend-to-disk enabled="no"/>
  224. </pm>
  225. <devices>
  226. <emulator>/usr/bin/qemu-kvm</emulator>
  227. <disk type="file" device="disk">
  228. <driver name="qemu" type="qcow2"/>
  229. <source file="/home/srestha/.local/share/libvirt/images/foobar.qcow2"/>
  230. <target dev="vda" bus="virtio"/>
  231. </disk>
  232. <controller type="usb" index="0" model="qemu-xhci" ports="15"/>
  233. <interface type="user">
  234. <mac address="52:54:00:ba:09:32"/>
  235. <model type="virtio"/>
  236. </interface>
  237. <console type="pty"/>
  238. <channel type="unix">
  239. <source mode="bind"/>
  240. <target type="virtio" name="org.qemu.guest_agent.0"/>
  241. </channel>
  242. <channel type="spicevmc">
  243. <target type="virtio" name="com.redhat.spice.0"/>
  244. </channel>
  245. <input type="tablet" bus="usb"/>
  246. <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
  247. <image compression="off"/>
  248. </graphics>
  249. <sound model="ich9"/>
  250. <video>
  251. <model type="qxl"/>
  252. </video>
  253. <redirdev bus="usb" type="spicevmc"/>
  254. <redirdev bus="usb" type="spicevmc"/>
  255. <rng model="virtio">
  256. <backend model="random">/dev/urandom</backend>
  257. </rng>
  258. </devices>
  259. </domain>
  260.  
  261. [Sun, 14 Apr 2019 10:25:34 virt-install 13313] DEBUG (installer:386) Generated boot XML:
  262. <domain type="kvm">
  263. <name>foobar</name>
  264. <uuid>6773531e-03e8-41f2-acf0-18c622a085ef</uuid>
  265. <metadata>
  266. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  267. <libosinfo:os id="http://fedoraproject.org/fedora/29"/>
  268. </libosinfo:libosinfo>
  269. </metadata>
  270. <memory>2097152</memory>
  271. <currentMemory>2097152</currentMemory>
  272. <vcpu>1</vcpu>
  273. <os>
  274. <type arch="x86_64" machine="q35">hvm</type>
  275. <boot dev="hd"/>
  276. </os>
  277. <features>
  278. <acpi/>
  279. <apic/>
  280. <vmport state="off"/>
  281. </features>
  282. <cpu mode="host-model"/>
  283. <clock offset="utc">
  284. <timer name="rtc" tickpolicy="catchup"/>
  285. <timer name="pit" tickpolicy="delay"/>
  286. <timer name="hpet" present="no"/>
  287. </clock>
  288. <pm>
  289. <suspend-to-mem enabled="no"/>
  290. <suspend-to-disk enabled="no"/>
  291. </pm>
  292. <devices>
  293. <emulator>/usr/bin/qemu-kvm</emulator>
  294. <disk type="file" device="disk">
  295. <driver name="qemu" type="qcow2"/>
  296. <source file="/home/srestha/.local/share/libvirt/images/foobar.qcow2"/>
  297. <target dev="vda" bus="virtio"/>
  298. </disk>
  299. <controller type="usb" index="0" model="qemu-xhci" ports="15"/>
  300. <interface type="user">
  301. <mac address="52:54:00:ba:09:32"/>
  302. <model type="virtio"/>
  303. </interface>
  304. <console type="pty"/>
  305. <channel type="unix">
  306. <source mode="bind"/>
  307. <target type="virtio" name="org.qemu.guest_agent.0"/>
  308. </channel>
  309. <channel type="spicevmc">
  310. <target type="virtio" name="com.redhat.spice.0"/>
  311. </channel>
  312. <input type="tablet" bus="usb"/>
  313. <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
  314. <image compression="off"/>
  315. </graphics>
  316. <sound model="ich9"/>
  317. <video>
  318. <model type="qxl"/>
  319. </video>
  320. <redirdev bus="usb" type="spicevmc"/>
  321. <redirdev bus="usb" type="spicevmc"/>
  322. <rng model="virtio">
  323. <backend model="random">/dev/urandom</backend>
  324. </rng>
  325. </devices>
  326. </domain>
  327.  
  328. [Sun, 14 Apr 2019 10:25:34 virt-install 13313] DEBUG (installertreemedia:212) Removing /home/srestha/.cache/virt-manager/unattended/fedora.ks
  329. [Sun, 14 Apr 2019 10:25:34 virt-install 13313] DEBUG (installertreemedia:212) Removing /home/srestha/.cache/virt-manager/boot/virtinst-vmlinuz.a8f7gbsq
  330. [Sun, 14 Apr 2019 10:25:34 virt-install 13313] DEBUG (installertreemedia:212) Removing /home/srestha/.cache/virt-manager/boot/virtinst-initrd.img.qc4ncnwk
  331. <domain type="kvm">
  332. <name>foobar</name>
  333. <uuid>6773531e-03e8-41f2-acf0-18c622a085ef</uuid>
  334. <metadata>
  335. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  336. <libosinfo:os id="http://fedoraproject.org/fedora/29"/>
  337. </libosinfo:libosinfo>
  338. </metadata>
  339. <memory>2097152</memory>
  340. <currentMemory>2097152</currentMemory>
  341. <vcpu>1</vcpu>
  342. <os>
  343. <type arch="x86_64" machine="q35">hvm</type>
  344. <kernel>/home/srestha/.cache/virt-manager/boot/virtinst-vmlinuz.a8f7gbsq</kernel>
  345. <initrd>/home/srestha/.cache/virt-manager/boot/virtinst-initrd.img.qc4ncnwk</initrd>
  346. <cmdline>ks=file:/fedora.ks inst.repo=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os</cmdline>
  347. </os>
  348. <features>
  349. <acpi/>
  350. <apic/>
  351. <vmport state="off"/>
  352. </features>
  353. <cpu mode="host-model"/>
  354. <clock offset="utc">
  355. <timer name="rtc" tickpolicy="catchup"/>
  356. <timer name="pit" tickpolicy="delay"/>
  357. <timer name="hpet" present="no"/>
  358. </clock>
  359. <on_reboot>destroy</on_reboot>
  360. <pm>
  361. <suspend-to-mem enabled="no"/>
  362. <suspend-to-disk enabled="no"/>
  363. </pm>
  364. <devices>
  365. <emulator>/usr/bin/qemu-kvm</emulator>
  366. <disk type="file" device="disk">
  367. <driver name="qemu" type="qcow2"/>
  368. <source file="/home/srestha/.local/share/libvirt/images/foobar.qcow2"/>
  369. <target dev="vda" bus="virtio"/>
  370. </disk>
  371. <controller type="usb" index="0" model="qemu-xhci" ports="15"/>
  372. <interface type="user">
  373. <mac address="52:54:00:ba:09:32"/>
  374. <model type="virtio"/>
  375. </interface>
  376. <console type="pty"/>
  377. <channel type="unix">
  378. <source mode="bind"/>
  379. <target type="virtio" name="org.qemu.guest_agent.0"/>
  380. </channel>
  381. <channel type="spicevmc">
  382. <target type="virtio" name="com.redhat.spice.0"/>
  383. </channel>
  384. <input type="tablet" bus="usb"/>
  385. <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
  386. <image compression="off"/>
  387. </graphics>
  388. <sound model="ich9"/>
  389. <video>
  390. <model type="qxl"/>
  391. </video>
  392. <redirdev bus="usb" type="spicevmc"/>
  393. <redirdev bus="usb" type="spicevmc"/>
  394. <rng model="virtio">
  395. <backend model="random">/dev/urandom</backend>
  396. </rng>
  397. </devices>
  398. </domain>
  399. <domain type="kvm">
  400. <name>foobar</name>
  401. <uuid>6773531e-03e8-41f2-acf0-18c622a085ef</uuid>
  402. <metadata>
  403. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  404. <libosinfo:os id="http://fedoraproject.org/fedora/29"/>
  405. </libosinfo:libosinfo>
  406. </metadata>
  407. <memory>2097152</memory>
  408. <currentMemory>2097152</currentMemory>
  409. <vcpu>1</vcpu>
  410. <os>
  411. <type arch="x86_64" machine="q35">hvm</type>
  412. <boot dev="hd"/>
  413. </os>
  414. <features>
  415. <acpi/>
  416. <apic/>
  417. <vmport state="off"/>
  418. </features>
  419. <cpu mode="host-model"/>
  420. <clock offset="utc">
  421. <timer name="rtc" tickpolicy="catchup"/>
  422. <timer name="pit" tickpolicy="delay"/>
  423. <timer name="hpet" present="no"/>
  424. </clock>
  425. <pm>
  426. <suspend-to-mem enabled="no"/>
  427. <suspend-to-disk enabled="no"/>
  428. </pm>
  429. <devices>
  430. <emulator>/usr/bin/qemu-kvm</emulator>
  431. <disk type="file" device="disk">
  432. <driver name="qemu" type="qcow2"/>
  433. <source file="/home/srestha/.local/share/libvirt/images/foobar.qcow2"/>
  434. <target dev="vda" bus="virtio"/>
  435. </disk>
  436. <controller type="usb" index="0" model="qemu-xhci" ports="15"/>
  437. <interface type="user">
  438. <mac address="52:54:00:ba:09:32"/>
  439. <model type="virtio"/>
  440. </interface>
  441. <console type="pty"/>
  442. <channel type="unix">
  443. <source mode="bind"/>
  444. <target type="virtio" name="org.qemu.guest_agent.0"/>
  445. </channel>
  446. <channel type="spicevmc">
  447. <target type="virtio" name="com.redhat.spice.0"/>
  448. </channel>
  449. <input type="tablet" bus="usb"/>
  450. <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
  451. <image compression="off"/>
  452. </graphics>
  453. <sound model="ich9"/>
  454. <video>
  455. <model type="qxl"/>
  456. </video>
  457. <redirdev bus="usb" type="spicevmc"/>
  458. <redirdev bus="usb" type="spicevmc"/>
  459. <rng model="virtio">
  460. <backend model="random">/dev/urandom</backend>
  461. </rng>
  462. </devices>
  463. </domain>
  464.  
  465. [srestha@localhost virt-manager]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement