AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-113505

ananthan's questions

Martin Hope
ananthan
Asked: 2017-03-08 00:27:03 +0800 CST

为什么 echo "ens6f1" > 解释为 ns6f1 即没有 "e"

  • 1

我正在尝试执行

echo "ens6f1" > /sys/class/net/bond0/bonding/slaves

但出现错误:

bond0:接口ns6f1不存在!

这是一个“回声”问题还是我正在尝试编写的文件的一些问题。

Ubuntu 14.04.4

ip l l ens6f1
25: ens6f1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 14:02:ec:67:fd:95 brd ff:ff:ff:ff:ff:ff
linux bonding linux-networking ubuntu-14.04
  • 1 个回答
  • 62 Views
Martin Hope
ananthan
Asked: 2012-12-06 01:41:55 +0800 CST

删除以单词“mark”开头并以“;”结尾的句子

  • 0

我有 100 个文件,其中包含以mark开头并以分号 (;)结尾的句子。

eg: mark is driving a car;

我需要删除以标记开头并以“ ; ”结尾的每个句子

如何使用sed或类似工具执行此操作。

我用 sed 来替换模式,但不知道如何删除模式。

linux
  • 3 个回答
  • 8429 Views
Martin Hope
ananthan
Asked: 2012-09-21 05:08:12 +0800 CST

如何确保VM 在XEN 上处于Para 虚拟化模式?

  • 0

我有一台运行 XEN 的服务器,其中 ubuntu 12.04 作为域 0。

默认情况下,英特尔 VT 是打开的,我不想将任何 Windows 操作系统作为 VM 运行。所以

1. how can i makesure that all the created VM will be in
paravirtualized mode even with VT enabled?

我听说在完全虚拟化中,hypervisor 需要努力模拟所有底层硬件,与 para 模式相比,这可能会降低过多 i/o 特定应用程序的性能。

2.Since i am running only Linux VMs do i really need to enable VT
support?

3.Can i be able to run Linux VM in para mode with VT enabled?

4.Will simply turning on VT support changes virtualization from para to full virtualization??

5.Will there be any performance improvement for VM running Linux OS if VT is enabled?
xen
  • 3 个回答
  • 3853 Views
Martin Hope
ananthan
Asked: 2012-09-20 23:10:25 +0800 CST

是否可以使用 Qemu-dm 在没有 VT 的情况下将 Windows 作为 Xen VM 运行?

  • 1

是否可以在 Xen 下将 Windows 作为虚拟机运行qemu-dm?如果可以,怎么办?

由于没有VT技术的Xen只支持半虚拟化,qemu-dm帮助VM访问网络和磁盘的模拟器是否可以配置为模拟整个硬件?

在 KVM 的情况下,可以qemu-dm为没有硬件辅助虚拟化支持的系统执行此操作吗?

xen
  • 1 个回答
  • 782 Views
Martin Hope
ananthan
Asked: 2012-08-15 02:06:17 +0800 CST

负载太高,包括 iptables 在内的许多文件丢失:我的服务器是否受到攻击?

  • 2

我的服务器在 400 左右及以上负载很重。这是服务器故障问题的链接

我能够在顶部输出中看到rm命令和xargs运行,其中我是唯一登录的用户。

我试图杀死那个过程,但那没有用。

我试图编写一个 iptables 规则来制定默认策略以删除并仅允许我的 IP 进行通信,但在此之前 iptables 丢失了。我再次安装它但它显示:

致命:无法加载/lib/modules/2.6.32-5-vserver-amd64/modules.dep:没有这样的文件或目录 iptables v1.4.14:无法初始化 iptables 表`filter':表不存在(做你需要 insmod?)也许 iptables 或你的内核需要升级。

当我试图关闭服务器时,我收到了超时消息。重启也没用。

负载下降后,我执行了 chrootkit 扫描,结果如下。它显示了许多丢失的模块和隐藏文件。

Searching for suspicious files and dirs, it may take a while... The
following suspicious files and directories were found:
/usr/lib/pymodules/python2.6/.path /usr/lib/pymodules/python2.7/.path
/usr/lib/node_modules/npm/.npmignore
/usr/lib/node_modules/npm/.travis.yml
/usr/lib/node_modules/npm/node_modules/fast-list/.npmignore
/usr/lib/node_modules/npm/node_modules/fast-list/.travis.yml
/usr/lib/node_modules/npm/node_modules/fstream/.npmignore
/usr/lib/node_modules/npm/node_modules/fstream/.travis.yml
/usr/lib/node_modules/npm/node_modules/graceful-fs/.npmignore
/usr/lib/node_modules/npm/node_modules/lru-cache/.npmignore
/usr/lib/node_modules/npm/node_modules/minimatch/.travis.yml
/usr/lib/node_modules/npm/node_modules/node-uuid/.npmignore
/usr/lib/node_modules/npm/node_modules/nopt/.npmignore
/usr/lib/node_modules/npm/node_modules/slide/.npmignore
/usr/lib/node_modules/npm/node_modules/tar/.npmignore
/usr/lib/node_modules/npm/node_modules/tar/.travis.yml
/usr/lib/node_modules/npm/node_modules/.bin
/usr/lib/node_modules/npm/test/packages/npm-test-files/.npmignore
/usr/lib/node_modules/npm/test/packages/npm-test-ignore/.npmignore
/usr/lib/node_modules/npm/node_modules/.bin

正在检查 ‘lkm’...您为 readdir 命令隐藏了 3086 个进程 SIGINVISIBLE Adore 发现 chkproc:警告:可能安装了 LKM 特洛伊木马

我是否需要进一步调查以确认这是一次攻击?

我如何获得有关攻击者进入方式的详细信息?

linux
  • 1 个回答
  • 534 Views
Martin Hope
ananthan
Asked: 2012-08-13 20:19:45 +0800 CST

对于具有 4GB RAM 的系统,free -m 显示总计 309 Mb

  • 1

OS:Xen Cloud Platform 1.1 (XCP) 修改centos, xen server 5.0 跑在intel i5上

免费-m

               total       used        free     shared    buffers    cached
       Mem:     309         136        172        0         1          17
-/+ buffers/cache:         117         191
Swap:           511          7         504

df-h

none                  380M     0  380M   0% /dev/shm

cat /proc/内存信息

MemTotal:         316416 kB
MemFree:           79024 kB
Buffers:            5444 kB
Cached:            79304 kB
SwapCached:            0 kB
Active:            48020 kB
Inactive:          64092 kB
Active(anon):      30572 kB
Inactive(anon):     1624 kB
Active(file):      17448 kB
Inactive(file):    62468 kB
Unevictable:        6436 kB
Mlocked:            6436 kB
HighTotal:             0 kB
HighFree:              0 kB
LowTotal:         316416 kB
LowFree:           79024 kB
SwapTotal:        524280 kB
SwapFree:         524280 kB
Dirty:               172 kB
Writeback:             0 kB
AnonPages:         33876 kB
Mapped:            17864 kB
Shmem:               124 kB
Slab:              17100 kB
SReclaimable:       8276 kB
SUnreclaim:         8824 kB
KernelStack:        1464 kB
PageTables:            0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      682488 kB
Committed_AS:     647196 kB
VmallocTotal:     245752 kB
VmallocUsed:        4576 kB
VmallocChunk:     237148 kB
DirectMap4k:      754492 kB
DirectMap2M:           0 kB**

顶级输出

Mem:    316416k total,   237992k used,    78424k free,     5636k buffers
Swap:   524280k total,        0k used,   524280k free,    79404k cached

基于 ram (shift+m​​) 的顶部排序

top - 14:59:20 up 29 min,  1 user,  load average: 0.00, 0.00, 0.00
Tasks: 113 total,   1 running, 112 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st
Mem:    316416k total,   238008k used,    78408k free,     5708k
buffers
Swap:   524280k total,        0k used,   524280k free,    79440k
cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5942 root      17  -3  179m  12m 5492 S  0.3  4.2   0:05.72 xapi
 6964 root      20   0 11776 7672 2856 S  0.3  2.4   0:00.87 python
 5939 root      17  -3 21524 6092 2880 S  0.0  1.9   0:00.00 xapi
 6700 root      20   0 11768 5028 1644 S  0.0  1.6   0:00.16 python
 5740 ntp       20   0  4496 4496 3488 S  0.0  1.4   0:00.05 ntpd
 6398 root      20   0 27772 4052 1020 S  0.0  1.3   0:00.01 snapwatchd
 5634 root      20   0  170m 3620 2664 S  0.0  1.1   0:00.02 lwregd
 5527 root      RT   0  3432 3432 2708 S  0.0  1.1   0:00.04 multipathd
 7909 root      20   0 10168 2824 2268 S  0.0  0.9   0:00.03 sshd
 6128 root      20   0 29608 2792 1540 S  0.0  0.9   0:00.03 mpathalert
 7921 root      20   0  5152 2024 1268 S  0.0  0.6   0:00.05 bash
 5632 root      20   0  173m 1576 1036 S  0.0  0.5   0:00.00 lwsmd
 5241 root      10 -10  5988 1504  928 S  0.0  0.5   0:00.30 ovs-vswitchd
 5804 root      20   0  2992 1472  564 S  0.0  0.5   0:00.09 fe
 5909 root      20   0 11600 1452  912 S  0.0  0.5   0:00.04 squeezed
 5228 root      10 -10  5448 1440 1052 S  0.0  0.5   0:00.08 ovsdb-server
 5858 root      20   0  5360 1304  780 S  0.0  0.4   0:00.03 xenstored
 5831 root      20   0 12964 1212  756 S  0.0  0.4   0:00.00 v6d
 6552 root      20   0  5384 1108  572 S  0.0  0.4   0:00.00 crond
 8122 root      20   0  2404 1104  836 R  0.3  0.3   0:00.41 top
 6499 root      20   0  7180 1068  664 S  0.0  0.3   0:00.00 sshd
 5834 root      20   0 21112 1064  604 S  0.0  0.3   0:00.36 v6d
 6968 root      20   0  4492 1044  672 S  0.0  0.3   0:00.00 vncterm
 6969 root      20   0  2544 1044  912 S  0.0  0.3   0:00.00 dom0term.sh
 5240 root      10 -10  5880  832  272 S  0.0  0.3   0:00.28 ovs-vswitchd
 1527 root      16  -4  2364  744  396 S  0.0  0.2   0:01.24 udevd
    1 root      20   0  2156  664  564 S  0.0  0.2   0:00.21 init
 5563 rpc       20   0  1904  644  548 S  0.0  0.2   0:00.00 portmap
 6038 root      17  -3  5208  632  272 S  0.0  0.2   0:00.00 stunnel
 5376 root      20   0  1808  616  516 S  0.0  0.2   0:00.01 syslogd
 5227 root      10 -10  5444  556  280 S  0.0  0.2   0:00.27 ovsdb-server
 5861 root      20   0 10392  548  436 S  0.0  0.2   0:00.00 xenconsoled
 5869 root      20   0  3072  476  256 D  0.0  0.2   0:00.51 cdrommon
 6967 root      20   0  1752  472  404 S  0.0  0.1   0:00.00 agetty
 6965 root      20   0  1740  452  388 S  0.0  0.1   0:00.00 mingetty

在 BIOS 上显示 4 GB 的已安装 RAM。在同一台机器上,较早的 ubuntu 12.04 运行时没有显示任何 RAM 问题。

更新:

在xsconsole(xen console)>Hardware and BIOS Information>System memory>

总内存 4096 MB

填充内存插槽 2

总内存插槽 4

linux
  • 1 个回答
  • 735 Views
Martin Hope
ananthan
Asked: 2012-08-10 07:33:50 +0800 CST

通过浏览器访问时如何免费保护xen服务器?

  • 0

我们让xen 服务器在远程机器上自由运行,它有一个公共 ip,通过它我可以访问控制台......

当通过浏览器访问时,它会显示一个下载 xen 中心的页面。

我想隐藏它,我尝试通过禁用其他 ips 的端口 80 来使用 iptables 来阻止它。但是在那之后我无法使用 Xen Centre 访问 xen 服务器。有没有更好的方法来解决这个问题?

更新:

那是 iptable miss 配置允许 127.0.0.1 连接解决了这个......

linux
  • 2 个回答
  • 349 Views
Martin Hope
ananthan
Asked: 2012-07-18 08:02:34 +0800 CST

重新编译 Nginx 1.1.19 以进行分块上传,但仍然无法正常工作....

  • 1

我无法让分块上传工作。即使在重新编译 Nginx 之后。我在 ubuntu 12.04 上使用 nginx 1.1.19。我下载了nginx 1.1.19的源码和分块上传的模块,编译如下。

./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_gzip_static_module  --with-http_ssl_module --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl **--add-module=path-to-chunkin-module --with-pcre=/path-to-pre-library.**

编译后我得到了这个:

Configuration summary   

+ using PCRE library: /home/www-data/pcre-8.10

+ using system OpenSSL library    + md5: using OpenSSL library    + sha1: using OpenSSL library   
+ using system zlib library

  nginx path prefix: "/etc/nginx" 

  nginx binary file: "/etc/nginx/sbin/nginx"
    nginx configuration prefix: "/etc/nginx"
    nginx configuration file: "/etc/nginx/nginx.conf"     nginx pid file: "/var/run/nginx.pid"  

 nginx error log file: "/var/log/nginx/error.log"     nginx http
access log file: "/var/log/nginx/access.log"     nginx http client
**request body temporary files: "client_body_temp"**

**nginx http proxy temporary files: "proxy_temp"** 

 nginx http fastcgi temporary files: "/var/lib/nginx/fastcgi"    
nginx http uwsgi temporary files: "uwsgi_temp"     nginx http scgi
temporary files: "scgi_temp"

即使我不想要代理模块,我也无法使用--without-http_proxy-module. 之后我重新启动了nginx。

nginx -V 显示带有 chunkin 模块和 pcre 的编译模块。但是块上传仍然无法正常工作。我配置sites-enabled/default并添加了

chunkin on;
    error_page 411 = @my_411_error;   location @my_411_error {
      chunkin_resume;   }

但是块上传仍然远离。curl输出显示:

curl -I ipaddress-of-server

HTTP/1.1 200 OK
Server: nginx
Date: Tue, 17 Jul 2012 20:31:56 GMT
Content-Type: text/html
Content-Length: 4448
Last-Modified: Mon, 11 Jun 2012 18:02:19 GMT
Connection: keep-alive
Accept-Ranges: bytes 

我在访问日志中收到411 错误。

ubuntu nginx chunked
  • 1 个回答
  • 926 Views
Martin Hope
ananthan
Asked: 2012-07-14 09:36:13 +0800 CST

是否可以像 live CD 那样将虚拟机加载到内存中

  • -3

我们能否创建并运行仅使用 RAM 或最小化 HDD 使用的虚拟机?

这与 live CD 的工作概念相同。

我知道这是可能的,但仍然很困惑,是否可以实施。

virtualization xen kvm-virtualization
  • 2 个回答
  • 487 Views
Martin Hope
ananthan
Asked: 2012-07-11 07:45:45 +0800 CST

Strace Apache 进程输出显示等待 24 秒?可能是什么原因?

  • 4

对其中一个 apache 子项执行 strace,它在两个系统调用之间显示 24 秒。我如何确定导致此行为的原因。看起来两个子项花费的时间几乎相同(24.7 和 23.92)秒。

我们在 php5 和 mysql 5 中使用 apache prefork

/var/lib/php5/ 是 php 会话文件夹

带有 processid -20539 的 apache children1 的 strace 输出

ps -u www 数据 | grep apache2 | awk '{print"-p " $1}' | xargs strace -o /strace/strace.log -ff -s4096 -r

20539 0.000064 关闭(13)= 0

20539 0.000060 打开(“/var/lib/php5/sess_9t2cvnvdoruh666rjpm515idm0”,O_RDWR|O_CREAT,0600)= 13

20539 0.000065 羊群(13,LOCK_EX)= 0

20539 24.711888 fcntl(13,F_SETFD,FD_CLOEXEC)= 0

20539 0.000056 fstat(13, {st_mode=S_IFREG|0600, st_size=211, ...}) = 0

20539 0.000080 lseek(13、0、SEEK_SET)= 0

带 processid 的 apache children2 的 strace 输出 - 20556

20556 0.000056 关闭(13)= 0

20556 0.000058 打开(“/var/lib/php5/sess_9t2cvnvdoruh666rjpm515idm0”,O_RDWR|O_CREAT,0600)= 13

20556 0.000062 羊群(13,LOCK_EX)= 0

20556 23.928294 fcntl(13,F_SETFD,FD_CLOEXEC)= 0

20556 0.000055 fstat(13, {st_mode=S_IFREG|0600, st_size=211, ...}) = 0

20556 0.000083 lseek(13、0、SEEK_SET)= 0

文件描述符(13)调用的文件可能有问题吗?我对 strace 输出的理解有什么问题吗?

php apache-2.2 strace max-file-descriptors
  • 1 个回答
  • 1737 Views
Martin Hope
ananthan
Asked: 2012-07-04 02:44:08 +0800 CST

允许任何文件上传到服务器和安全风险

  • 0

我们有一个项目,允许用户通过在 Linux 服务器上运行的 php 上传将数据备份到服务器。

如果用户上传任何可执行文件,它将在上传后自动重命名为其他名称,并从文件中删除执行权限。

这会不会导致安全问题。

黑客上传的病毒在没有执行权限和实际名称的情况下是否仍然可以运行。

上传位置不是 /var/www,而是在单独的存储设备中。

linux malware security upload
  • 1 个回答
  • 1218 Views
Martin Hope
ananthan
Asked: 2012-06-13 21:43:40 +0800 CST

NAT ing 到端口 80 不工作,当请求出现时

  • 0

我们有一台带有虚拟机的机器,本地 IP NAT 已转换为公共 IP。

当请求到达端口 80 上的公共 IP 时,它将被重定向到具有本地 IP 的 VM。

这是我们正在使用的 iptable 规则:

iptables -t nat -A PREROUTING -p tcp -d public-ip --dport 80 -j DNAT --to ip-of-vm:80

在某些情况下,请求必须通过公共 IP 从 vm 发送到它自己。

但这并没有发生,即 VM 无法通过公共 IP 与自身通信。我尝试从虚拟机远程登录到公共 IP 端口 80,但即使有网络连接也没有发生连接。

有什么办法可以解决这个问题吗?

netstat在虚拟机上显示

$ netstat -ntp |grep 80
tcp        0      1 localip:53067    public-ip:80        SYN_SENT    22226/telnet**

的输出iptables-save -c:

考虑 192.168.61.31 作为 eth0 上的 pub ip 192.168.61.40 作为 eth0:1 上的 pub ip

# Generated by iptables-save v1.4.12 on Wed Jun 13 13:29:06 2012
*nat
:PREROUTING ACCEPT [9:1584]
:INPUT ACCEPT [9:1584]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [12:720]
[222:13320] -A PREROUTING -d 192.168.61.40/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.122.43:80
[164:9840] -A PREROUTING -d 192.168.61.31/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.122.42:80
[15:16631] -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p tcp -j MASQUERADE --to-ports 1024-65535
[76:5092] -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p udp -j MASQUERADE --to-ports 1024-65535
[0:0] -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -j MASQUERADE
[0:0] -A POSTROUTING -s 192.168.122.0/32 -o virbr0 -p tcp -m tcp --dport 80 -j SNAT --to-source 192.168.61.31
COMMIT
# Completed on Wed Jun 13 13:29:06 2012

# Generated by iptables-save v1.4.12 on Wed Jun 13 13:29:06 2012
*mangle
:PREROUTING ACCEPT [491283:64985216]
:INPUT ACCEPT [467366:60033592]
:FORWARD ACCEPT [23752:4941940]
:OUTPUT ACCEPT [472767:103297872]
:POSTROUTING ACCEPT [496519:108239812]
[0:0] -A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
COMMIT
# Completed on Wed Jun 13 13:29:06 2012

# Generated by iptables-save v1.4.12 on Wed Jun 13 13:29:06 2012
*filter
:INPUT ACCEPT [467244:60021819]
:FORWARD ACCEPT [23744:4941444]
:OUTPUT ACCEPT [472681:103288146]
[0:0] -A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT
[0:0] -A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT
[0:0] -A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
[0:0] -A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
COMMIT
# Completed on Wed Jun 13 13:29:06 2012
virtualization routing nat port-forwarding iptables
  • 1 个回答
  • 389 Views
Martin Hope
ananthan
Asked: 2012-06-08 05:11:17 +0800 CST

桥接别名以太网卡以使用单个以太网卡进行虚拟化

  • 1

我们有一台具有良好 CPU 和 RAM 的服务器,因此我们计划在 ubuntu 12.04 服务器上进行 XEN 虚拟化以处理高流量。计划是让主机只管理虚拟机(没有 NAT ing)。

一个新的公共 IP 将分配给该 VM,为此我认为我们需要一个到外部网络的桥接器(因为我的机器只有一个以太网卡别名为 4 个不同的 Pub IP)是否可以使用别名 IP 创建一个桥接器

别名为 4 个 pub IP 的单个以太网卡

我们是否需要额外的以太网卡来进行桥接。只能通过 ssh 访问机器。任何建议将不胜感激。

virtualization xen nat bridge
  • 2 个回答
  • 501 Views
Martin Hope
ananthan
Asked: 2012-05-26 03:39:46 +0800 CST

在 ubuntu 12.04 上通过 virt-manager 管理 XEN

  • 1

我一直在尝试让 xen 在没有 GUI 的远程机器上工作。在机器上安装了 XEN 管理程序并在该内核中启动。尝试使用 virt-manager 创建 VM。我尝试通过 X11 转发 (ssh -X) 访问 virt-manager,但我仍然无法使用它创建 VM。是否有解决方案。

细节:

使用的模拟器:usr/lib/xen-default/bin/qemu-dm
virsh version输出:

info : libvirt version: 0.9.8  
Compiled against library: libvir 0.9.8  
Using library: libvir 0.9.8  
Using API: Xen 0.9.8  j
Running hypervisor: Xen 4.1.0  

在为磁盘分配空间后使用 virt-manger 显示以下错误

无法完成安装:'POST 操作失败:xend_post:来自 xen 守护程序的错误:'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1909, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1236, in start_install
    noboot)
  File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1304, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2166, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: POST operation failed: xend_post: error from xen daemon: <Fault 3: 'VM'>

我厌倦了使用virt-install --name=hello --ram=512 --file-size 10 --location=/home/admin/ubuntu-12.04-server-amd64.iso --file=/VMA/new/123 但它的显示

**ERROR    Couldn't find xen kernel for Ubuntu tree.**

这是 grub 配置,它直接引导到这里的第一个选项

submenu "Xen 4.1-amd64" {
menuentry 'Ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {

它直接引导到此处的第一个选项,但uname -a显示

Linux ubuntu 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

grub.cfg:

set default="0"

### BEGIN /etc/grub.d/20_linux_xen ###
submenu "Xen 4.1-amd64" {
menuentry 'Ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os --class xen {

    insmod part_msdos

    insmod ext2

    set root='(hd0,msdos6)'

    search --no-floppy --fs-uuid --set=root a24dc20d-d11a-465a-a040-839468167da0

    echo    'Loading Xen 4.1-amd64 ...'

    multiboot   /xen-4.1-amd64.gz placeholder  

    echo    'Loading Linux 3.2.0-23-generic ...'

    module  /vmlinuz-3.2.0-23-generic placeholder root=UUID=870d5785-bf0b-4af9-bf15-1b8e891e793a ro  

    echo    'Loading initial ramdisk ...'

    module  /initrd.img-3.2.0-23-generic

}

menuentry 'Ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --class xen {

    insmod part_msdos


    insmod ext2
    set root='(hd0,msdos6)'

    search --no-floppy --fs-uuid --set=root a24dc20d-d11a-465a-a040-839468167da0

    echo    'Loading Xen 4.1-amd64 ...'

    multiboot   /xen-4.1-amd64.gz placeholder 

    echo    'Loading Linux 3.2.0-23-generic ...'

    module  /vmlinuz-3.2.0-23-generic placeholder root=UUID=870d5785-bf0b-4af9-bf15-1b8e891e793a ro single 

    echo    'Loading initial ramdisk ...'

    module  /initrd.img-3.2.0-23-generic

}
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {

    recordfail

    gfxmode $linux_gfx_mode

    insmod gzio

    insmod part_msdos

    insmod ext2

    set root='(hd0,msdos6)'

    search --no-floppy --fs-uuid --set=root a24dc20d-d11a-465a-a040-839468167da0

    linux   /vmlinuz-3.2.0-23-generic root=UUID=870d5785-bf0b-4af9-bf15-1b8e891e793a ro

    initrd  /initrd.img-3.2.0-23-generic

}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {

    recordfail

    insmod gzio

    insmod part_msdos

    insmod ext2

    set root='(hd0,msdos6)'

    search --no-floppy --fs-uuid --set=root a24dc20d-d11a-465a-a040-839468167da0

    echo    'Loading Linux 3.2.0-23-generic ...'

    linux   /vmlinuz-3.2.0-23-generic root=UUID=870d5785-bf0b-4af9-bf15-1b8e891e793a ro recovery nomodeset 

    echo    'Loading initial ramdisk ...'

    initrd  /initrd.img-3.2.0-23-generic
}
virtualization xen ubuntu citrix virt-manager
  • 1 个回答
  • 4309 Views
Martin Hope
ananthan
Asked: 2012-05-24 20:55:36 +0800 CST

使用 virtmanager 和 GUI 安装和配置 xen

  • -1

有没有其他方法可以配置和安装许多虚拟机,并使用 XEN 在运行在 ubuntu 12.04 上的远程机器上管理它们。我们必须通过 ssh 在远程机器上配置虚拟机。可以不用 GUI 来完成吗?

virtualization xen ubuntu-12.04
  • 2 个回答
  • 978 Views
Martin Hope
ananthan
Asked: 2012-05-15 06:24:35 +0800 CST

来自 Apache 中单个 IP 地址的太多 ESTABLISHED 连接

  • 2

netstat -ntp |grep 80ESTABLISHED显示来自单个 IP 地址的连接过多。其中大约300 个,这不是攻击,用户使用 2G 连接访问 Apache。其他 2G 连接也是如此。因此,Apache 的孩子用完了。

早些时候它显示太多close_wait,启用后 tcp_tw_reuse显示tcp_tw-recycle不多close_wait,但ESTABLISHED连接数量增加了。

我们正在使用具有 48 GB 内存的 Ubuntu 11.04

keepalive On
keepalive timeout 10
max clients 800
max-request-perchild 4000
timeout 300

我已设置syn_ack为 1 和syn_retries2。

在wifi上没有这样的问题。连接正常关闭,但使用 2G 连接时,Apache 的子节点用完并且连接过多ESTABLISHED。

我也试过将超时从默认的 300 设置为 30,但是由于我们的项目是手机图像托管,客户端无法正确上传图像,因为它们经常超时。还有很多408消息,所以将其更改为默认300

apache-2.2 timeout tcpip netstat
  • 3 个回答
  • 6463 Views
Martin Hope
ananthan
Asked: 2012-05-11 01:36:56 +0800 CST

为什么 MySQL 使用这么多临时表?

  • 5

任何配置错误都会导致 mysql..mysql 调谐器显示创建太多临时表吗

Current max_heap_table_size = 200 M
Current tmp_table_size = 200 M
Of 17158 temp tables, 30% were created on disk


table_open_cache = 125 tables
table_definition_cache = 256 tables

You have a total of 97 tables

You have 125 open tables.

Current table_cache hit rate is 3%

较早的临时表是,of the 23725 temp tables 38% were created on disk但我从 16m 更改max_heap为tmp_table200m,它降低到 30%。

engine myisam 
group_concat_max_len = 32768
key_buffer_size = 3.7 GB,
thread_stack = 256k,
table_cache = 125
query_cache_limit = 1M
query_cache_size = 16M
join_buffer_size = 2.00 M

max_connections = 800

显示另一个具有默认配置的系统 of 23725 temp tables, 1% were created on disk

但是我尝试在有这个问题的机器上更改为默认值,它仍然显示Of 580 temp tables, 16% were created on disk

我正在使用 Ubuntu 11.4 64 位和 48 GB 内存...任何人都可以提出解决方案吗?

使用“group by”将数据库引擎从 myisam 更改为表上的内存是否可以修复此问题?

mysql memory innodb myisam
  • 2 个回答
  • 7720 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve