1.根据这个教程走http://bbs.archlinuxcn.org/viewtopic.php?id=1037
fdisk:https://wiki.archlinux.org/index.php/Fdisk
mount:https://wiki.archlinux.org/index.php/Mount
2.出现网络问题时,需要配置
### Basic DHCP network
This setup will enable a DHCP IP for host and container. In this case, both systems will share the same IP as they share the same interfaces.
<pre style="margin-bottom: 0; border-bottom:none; padding-bottom:0.8em;">/etc/systemd/network/*MyDhcp*.network</pre>
<pre style="margin-top: 0; border-top-style:dashed; padding-top: 0.8em;">[Match]
Name=en*
[Network]
DHCP=ipv4
</pre>
Then, [enable](https://wiki.archlinux.org/index.php/Enable "Enable") and start `systemd-networkd.service` on your container.
You can of course replace `en*` by the full name of your ethernet device given by the output of the `ip link` command.
* on host and container:
link:https://wiki.archlinux.org/index.php/Systemd-networkd#Basic_DHCP_network
操作为
vim /etc/systemd/network/MyDhcp.network
systemctl enable --now systemd-networkd.service
systemctl start --now systemd-networkd.service
#dhcp配置结束
最后如果上不了网,考虑是否时dns的问题,在配置中添加即可
https://wiki.archlinux.org/index.php/Network_configuration_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#%E5%8A%A8%E6%80%81_IP_%E5%9C%B0%E5%9D%80
https://wiki.archlinux.org/index.php/Systemd-networkd#Basic_DHCP_network
启动服务https://wiki.archlinux.org/index.php/Systemd#Using_units
3.GRUB引导问题
# pacman -S grub os-prober
# grub-install --target=i386-pc /dev/sdX # sdX 为目标磁盘
#install grub
#fdisk -l 查存储信息
#mount /dev/sbd3 /mnt/ubuntu
#需要在/etc/grub.d/40_custom 自定义的信息,自行填写,这次遇到的问题时LVM格式的盘符无法自动搜索,找到fedora原先的grub.conf,截取fedora部分写入arch的40_custom 中解决。
# grub-mkconfig -o /boot/grub/grub.cfg
GRUB AND LVM:
https://wiki.archlinux.org/index.php/GRUB/Tips_and_tricks#Install_to_partition_or_partitionless_disk
https://wiki.archlinux.org/index.php/GRUB
https://wiki.archlinux.org/index.php/GRUB#Installation_2
https://wiki.archlinux.org/index.php/GRUB_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
https://wiki.archlinux.org/index.php/LVM_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
LVM激活:
https://www.cnblogs.com/apexchu/p/4245117.html
网友评论