[DragonFlyBSD - Bug #3295] Adapt devel/libvirt for nvmm

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sun Oct 3 09:55:32 PDT 2021


Issue #3295 has been updated by tuxillo.


h3. Testing vagrant

The Vagrantfile needs this:

<pre>
  config.vm.provider :libvirt do |libvirt|
    libvirt.driver = "nvmm"
  end
</pre>

Once done, testing a Debian image:

<pre>
devbox:~/temp/vagrant/debian11$ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'generic/debian11' version '3.4.2' is up to date...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default:  -- Name:              debian11_default
==> default:  -- Description:       Source: /home/antonioh/temp/vagrant/debian11/Vagrantfile
==> default:  -- Domain type:       nvmm
==> default:  -- Cpus:              2
==> default:  -- Feature:           acpi
==> default:  -- Feature:           apic
==> default:  -- Feature:           pae
==> default:  -- Clock offset:      utc
==> default:  -- Memory:            2048M
==> default:  -- Management MAC:    
==> default:  -- Loader:            
==> default:  -- Nvram:             
==> default:  -- Base box:          generic/debian11
==> default:  -- Storage pool:      default
==> default:  -- Image():     /var/lib/libvirt/images/debian11_default.img, 128G
==> default:  -- Disk driver opts:  cache='default'
==> default:  -- Kernel:            
==> default:  -- Initrd:            
==> default:  -- Graphics Type:     vnc
==> default:  -- Graphics Port:     -1
==> default:  -- Graphics IP:       127.0.0.1
==> default:  -- Graphics Password: Not defined
==> default:  -- Video Type:        cirrus
==> default:  -- Video VRAM:        256
==> default:  -- Sound Type:
==> default:  -- Keymap:            en-us
==> default:  -- TPM Backend:       passthrough
==> default:  -- TPM Path:          
==> default:  -- INPUT:             type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 192.168.121.100:22
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
devbox:~/temp/vagrant/debian11$ vagrant ssh
vagrant at debian11:~$ uname -a
Linux debian11.localdomain 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux
vagrant at debian11:~$ 
logout
Connection to 192.168.121.100 closed.
devbox:~/temp/vagrant/debian11$ sudo nvmmctl list
Machine ID VCPUs RAM  Owner PID Creation Time           
---------- ----- ---- --------- ------------------------
0          2     2.0G 527838    Sun Oct  3 18:53:12 2021

</pre>

----------------------------------------
Bug #3295: Adapt devel/libvirt for nvmm
http://bugs.dragonflybsd.org/issues/3295#change-14174

* Author: tuxillo
* Status: In Progress
* Priority: Normal
* Assignee: tuxillo
* Category: nvmm
* Target version: 6.2
* Start date: 2021-09-01
----------------------------------------
With the recent addition of nvmm, it would be interesting to have something that eases the VM lifecycle, like @devel/libvirt@ . This is a feature request to myself to, at least try to, make @devel/libvirt@ usable with nvmm under DragonFly.

---Files--------------------------------
libvirt01.png (69.5 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list