Use Vagrant to manage machines using QEMU. Test with Apple Silicon / M1 and CentOS aarch64 image
MIT License
424
stars
33
forks
source link
Failed to mount folders in Linux guest. This is usually because the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. #18
$ vagrant up --provider=qemu
Bringing machine 'default' up with 'qemu' provider...
==> default: Checking if box 'generic/alpine311' version '4.1.10' is up to date...
==> default: Importing a QEMU instance
default: Creating and registering the VM...
default: Successfully imported VM
==> default: Preparing SMB shared folders...
default: You will be asked for the username and password to use for the SMB
default: folders shortly. Please use the proper username/password of your
default: account.
default:
default: Username (user[@domain]):
default: Password (will be hidden):
==> default: Warning! The QEMU provider doesn't support any of the Vagrant
==> default: high-level network configurations (`config.vm.network`). They
==> default: will be silently ignored.
==> default: Starting the instance...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:50022
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
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!
==> default: Mounting SMB shared folders...
default: /Users/brandonros/Desktop/test => /mnt
Vagrant is currently configured to mount SMB folders with the
`mfsymlink` option enabled. This is equivalent to adding the
following to your Vagrantfile:
config.vm.synced_folder '/host/path', '/guest/path', type: "smb", mount_options: ['mfsymlink']
This option may be globally disabled with an environment variable:
VAGRANT_DISABLE_SMBMFSYMLINKS=1
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:
mount -t cifs -o sec=ntlmssp,nounix,noperm,credentials=/etc/smb_creds_vgt-8f29043aefb7089f61a17da6251e7844-39de0dbcfb68c8735bd088c62fa061a4,uid=1000,gid=1000,mfsymlinks,_netdev,nofail //192.168.0.85/vgt-8f29043aefb7089f61a17da6251e7844-39de0dbcfb68c8735bd088c62fa061a4 /mnt
The error output from the last command was:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount: mounting //192.168.0.85/vgt-8f29043aefb7089f61a17da6251e7844-39de0dbcfb68c8735bd088c62fa061a4 on /mnt failed: Invalid argument
# vagrant plugin install vagrant-qemu
# vagrant box add generic/alpine311 --provider=libvirt
# vagrant up --provider=qemu
# vagrant ssh
Vagrant.configure("2") do |config|
config.vm.box = "generic/alpine311"
config.vm.provider "qemu" do |qe|
qe.arch = "x86_64"
qe.machine = "q35"
qe.cpu = "max"
qe.net_device = "virtio-net-pci"
end
config.vm.synced_folder ".", "/mnt", type: "smb"
end