unix:virtualization:virtlib:quickreference
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
unix:virtualization:virtlib:quickreference [2022/07/19 20:44] – rodolico | unix:virtualization:virtlib:quickreference [2025/01/24 23:58] (current) – rodolico | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== virt-lib Quick Reference ====== | ====== virt-lib Quick Reference ====== | ||
+ | |||
+ | virtlib stores its configuration for each //domain// (virtual) in / | ||
+ | |||
+ | The xml files are, well, xml. The format is documented at https:// | ||
===== virt-top ===== | ===== virt-top ===== | ||
Line 28: | Line 32: | ||
* This will attach a new bridge to domain //domain//, using //bridge// defined on hypervisor, called vnet3 on the virtual, with the mac address set to whatever you use. | * This will attach a new bridge to domain //domain//, using //bridge// defined on hypervisor, called vnet3 on the virtual, with the mac address set to whatever you use. | ||
* detach-interface //domain// --type bridge --mac 00: | * detach-interface //domain// --type bridge --mac 00: | ||
+ | * Attach/ | ||
+ | * virsh detach-disk router sda --config | ||
+ | * virsh attach-disk router / | ||
* Remove virtual image (config file only)< | * Remove virtual image (config file only)< | ||
* **change-media //name// //drive//** - Insert or Eject a CDROM | * **change-media //name// //drive//** - Insert or Eject a CDROM | ||
Line 250: | Line 257: | ||
In my case, I had built a Windows domain without using virtio, and I wanted to change it. This was actually the simplest way I found to do it. | In my case, I had built a Windows domain without using virtio, and I wanted to change it. This was actually the simplest way I found to do it. | ||
- | ==== Links ==== | + | |
+ | ===== Naming Network | ||
+ | |||
+ | to give a domain interface a static name when it is run, you can add the following to the interface definition. | ||
+ | <code xml>< | ||
+ | NOTE: the name must not begin with ' | ||
+ | https:// | ||
+ | <code xml> | ||
+ | < | ||
+ | <mac address=' | ||
+ | <source bridge=' | ||
+ | <target dev=' | ||
+ | <model type=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | You can now do things like <code bash> | ||
+ | |||
+ | ===== Adding USB Drive Image ===== | ||
+ | |||
+ | Building and using a USB Thumbdrive image is a little weird, but it can be done. See [[software: | ||
+ | |||
+ | ===== Links ===== | ||
* https:// | * https:// | ||
Line 257: | Line 287: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
+ |
unix/virtualization/virtlib/quickreference.1658281446.txt.gz · Last modified: 2022/07/19 20:44 by rodolico