云服务器免费试用

proxmox安装教程(proxmox安装虚拟机教程)

服务器知识 0 984

本文目录:

  • 1、proxmox ve 服务器,配置了spice 客户端是UBUNTU,控制台点了spice下载了配置文件,可是如何打开
  • 2、pve安装卡在createlvs
  • 3、pve虚拟机白屏
  • 4、Proxmox 默认账号是啥

proxmox ve 服务器,配置了spice 客户端是UBUNTU,控制台点了spice下载了配置文件,可是如何打开

协议是服务端与客户端通信的基础,

客户端是享受服务的终端机器,

服务端是提供服务的后台机器。

0. 安装前预备工作:

由于要从Git 服务器下载源码安装,所以需要安转git工具

[plain] view plain copy print?

span sudo apt-get install build-essential autoconf git-core

/span

当然,还有编译安装包使用的工具也要安装:

[plain] view plain copy print?

span sudo apt-get install libtool liblog4cpp5-dev libavcodec-dev libssl-dev xlibmesa-glu-dev libasound-dev libpng12-dev libfreetype6-dev \

libfontconfig1-dev libogg-dev libxrandr-dev kvm libgcrypt-dev libsdl-dev libnss3-dev libpixman-1-dev libxfixes-dev libjpeg8-dev \

libsasl2-dev python-pyparsing /span

最后准备,创建一个文件夹,用来存放下载的安装包(如果你对下载安装位置很清楚,当然也可以不用新建这个文件夹)

cd

mkdir spice-sources

cd spice-sources

1. SPICE安装依赖包:

1.1 libcacard

This library is what SPICE uses to emulate smart cards and smart card readers.

git clone git://people.freedesktop.org/~alon/libcacard

cd libcacard

./autogen.sh

make

sudo make install

cd ..

1.2. 安装协议(SPICE protocol headers)

The first dependency to install is the spice protocol headers.

wget

tar xjvf spice-protocol-0.8.0.tar.bz2

cd spice-protocol-0.8.0

mkdir m4

./configure

make

sudo make install

cd ..

1.3.安装celt

SPICE requires a specific version of the celt low-latency audio codec (0.5.1.3). Since it is unavailable in the Ubuntu repositories, it must also be compiled.

wget

tar xvzf celt-0.5.1.3.tar.gz

cd celt-0.5.1.3/

./configure

make

sudo make install

cd ..

2. 安装客户端(SPICE client)

This gives us spicec, the spice client. It's used to connect to SPICE guests.

客户端用来链接服务端的。

wget

tar xjvf spice-0.8.1.tar.bz2

cd spice-0.8.1

./configure --enable-smartcard

make

sudo make install

cd ..

This step is possible to perform on a 32-bit host; it's only installing the SPICE client.

值得注意的是:32位系统只能安装SPICE 的客户端,下面的服务端是无法安装的!

3. 安装SPICE server

Now, it's time to build the SPICE server itself. SPICE has been rolled into QEMU now, so this step amounts to installing a recent version of QEMU. In fact, we will be pulling the latest QEMU source code for version 0.14. Oddly enough, QEMU 0.14 is available in the Ubuntu repositories, but SPICE support is not included in the build.

以上的意思是说QEMU已经包含 SPICE服务,

First, we need to change an environment variable so that ./configure can find the spice protocol libraries we installed. You will need to set this variable anytime you want to use qemu with SPICE, so it's easiest to put it in your .bashrc.

修改环境变量以至于让configure找到我们安装spice协议的函数库。

echo "export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}" ~/.bashrc

source ~/.bashrc

Now, we can continue with the installation. Note that if you require a specific softmmu target, you can add a list of them with the --target argument. By default, QEMU only builds with support for 32-bit x86 guests.

继续安装,(PS:如果在之前已经安装过QEMU的话,这一步可以省略)

wget

tar xzvf qemu-0.14.0.tar.gz

cd qemu-0.14.0

./configure --enable-spice --enable-kvm --enable-io-thread --audio-drv-list=alsa,oss --enable-system

make

sudo make install

Now, we need to copy over some BIOS files that qemu will need to start SPICE VMs. We just need to put them in a location that QEMU expects them to be.

拷贝相关文件到QEMU 目录下让qemu启动虚拟机。(PS:如果之前已经安装QEMU,此步只需确认在/usr/share/qemu/目录下有以下两个文件即可,如果没有,那就得手动拷贝过去)

sudo cp pc-bios/vgabios-qxl.bin /usr/share/qemu/

sudo cp pc-bios/pxe-e1000.bin /usr/share/qemu/

cd ..

Now, qemu with SPICE support is installed in /usr/local/bin, and the ordinary system qemu is installed in/usr/bin. We'll make a shortcut command called 'qemu-spice' that you can invoke separately from the system qemu (which doesn't have SPICE support).

以上将含有SPICE 服务的QEMU安装到usr/local/bin(PS:也可能在usr/bin下),普通 QEMU 系统安装在/usr/bin下。以下是创建一个名字叫做qemu-spice的工具,其实是qemu的一个拷贝。

cd /usr/local/bin

sudo mv qemu qemu-spice

至此,server安装完毕。

4.使用SPICE

4.1使用Client

To invoke the spice client, use the command:调用客户端,使用如下命令

注意:server hostname 是服务器的地址,如果你的电脑同时安装客户服务端,那么你可以使用127.0.0.1来自己测试,port number 是服务端制定的端口号

spicec -h server hostname -p port number

4.2 使用Server

Invoking the spice server is rather more complex than the client, since you have to set the parameters of the virtualized guest. For example,

调用Server要比客户端麻烦得多。

qemu-spice -spice port=5930,disable-ticketing -drive file=/path/to/image -vga qxl -device AC97 -usbdevice tablet -m 1024 -enable-kvm -net nic -net user

注意:file=/path/to/image 要替换为系统的镜像文件,比如我的file=/kvm/vdisk.img

这样就启动了SPICE 服务端,然后在客户机上使用客户端命令

spicec -h server hostname -p port number

就可以在SPICE客户端启动服务机上的虚拟机系统了。

pve安装卡在createlvs

显卡驱动器的问题。需要重新安装。

1、首先插入PVE安装U盘,打开电脑从PVE安装U盘引导启动,选择“createlvs”,按回车开始安装。

2、然后选择要安装的硬盘,单击“Options”可以选择硬盘格式或者安装到zfs RAID硬盘阵列,要提前准备好多块硬盘,完成后单击“Next”进入下一步。

3、确认安装信息,点击“Install”开始安装,如果有不对的就点“Previous”回去修改。

4、最后启动完成,红框就算PVE的管理地址即可。

pve虚拟机白屏

1、首先在pve虚拟机页面(首个白屏页面),Alt+G同意安装条款,等待5秒,确保下个页面完全加载。

2、其次进入系统盘选择页面,按Tab两次,向上箭头多次(3次以上),选择系统盘,按Alt+N进入下一步,等待5秒,确保下个页面完全加载。

3、然后进入区域和时区页面,按Alt+N进入下一步,等待5秒,确保下个页面完全加载。

4、最后按Alt+I进入安装过程,等待5~30分钟安装完毕自动重启后即可解决。

Proxmox 默认账号是啥

Proxmox默认账号是admin。

Proxmox管理和配置,绝大部分是在web界面进行的,有少部分可能必须在命令行下进行操作。对于老司机来说,所有的操作都可以在命令行完成,不过这肯定没有在web界面下有效率和方便。因此,正常的工作场景,我们就在web界面下进行了。

Proxmox支持中文,这个对英语水平不高的技术人员来说,是个很好的便利。这里需要输入的密码,就是登录linux系统所用的密码。这个密码的设置,是在安装proxmox过程中进行的。为安全起见,密码设置要复杂点,复杂得自己无法记住。

【proxmox安装教程】的内容来源于互联网,如引用不当,请联系我们修改。

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942@qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: proxmox安装教程(proxmox安装虚拟机教程)
本文地址: https://solustack.com/26616.html

相关推荐:

网友留言:

我要评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。