0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ssh -X to vagrant linux

Posted at

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

デフォルトはユーザ名と同じなので、気になる場合は変えたほうが良い

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?