Skip to content

Instantly share code, notes, and snippets.

@iamwrm
Last active February 3, 2017 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamwrm/0bc701cf1a992b9acefbfda902dc4f68 to your computer and use it in GitHub Desktop.
Save iamwrm/0bc701cf1a992b9acefbfda902dc4f68 to your computer and use it in GitHub Desktop.
virtualbox centos ssh macOS log

SSH to local virtual machine

  • install centos 7 minimal

  • enable network

  • exact virtual machine setting network adaptor NAT

  • Port Forwarding

Host IP:    127.0.0.1
Host Port:  2222
Guest IP:   10.0.2.15
Guest Port: 22
  • ssh link
ssh -p2222 root@127.0.0.1

It should succeed.

TODO:

write guide/log for yum local iso

show the position of disks

lsblk

有的时候,7.9G的磁盘是在sr0,现在它在sr1,不解

尽量不要使用修改tab的方法,导致总是进入安全模式

还是用mount

try emacs gist el

Description

The order to use a local repo yum

mount /dev/cdrom /media/CentOS/

local.repo

[mLocal]
name=My Local Yum
baseurl=file:///media/CentOS
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-KEY-CentOS-7
enabled=1
yum --disablerepo=\* --enablerepo=c7-media

work flow

mkdir /media/CentOS/

mount /dev/cdrom /media/CentOS/

yum --disablerepo=\* --enablerepo=c7-media
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment