env
Host:Ubuntu 22.04
Guest:RockyLinux 9(Vagrant)
vagrant setting
Vagrantfile
config.ssh.forward_x11 = true
config.vm.network "private_network", ip: "192.168.56.101"
ここのサブネットの決まり方をいまいち理解していない。
たぶんVirtualBoxが環境ごとに何かしら選んでいるはず
issei@issei-AORUS:~/vms/rocky-rubydcl$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/rockylinux-9.0' version '202207.20.0' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
The IP address configured for the host-only network is not within the
allowed ranges. Please update the address used to be within the allowed
ranges and run the command again.
Address: 192.168.50.101
Ranges: 192.168.56.0/21
Valid ranges can be modified in the /etc/vbox/networks.conf file. For
more information including valid format see:
https://www.virtualbox.org/manual/ch06.html#network_hostonly
ひとまずエラーを出して探るスタイルで強行突破した。
Guest
dnf install xinit xterm xorg-x11-server-Xorg motif
Host -> Guest
ssh -X vagrant@192.168.56.101
デフォルトはユーザ名と同じなので、気になる場合は変えたほうが良い
参考